• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Simple Machine Forum on Ubuntu 16.04

2176

To install Simple Machine Forum on Ubuntu 16.04

Simple Machines Forum, also referred as SMF is one of the most popular open-source forum platforms used by a wide range of users. It is built based on PHP and uses a MySQL/MariaDB for data storage. Also, it is packed with abundant features and designed possessing an user-friendly interface. This post explains how to install Simple Machines Forum on Ubuntu 16.04.

Pre requirement
Install LAMP(apache, php 7, mariadb)
In mariadb (create database, user and give privilages to user)
For php
php modules(apt-get install php libapache2-mod-php php-mysql php-curl php-gd)

Installing Simple Machine Forum

Before you start the installation process, make sure you enter your HTML location by running the following command.

root@linuxhelpubnt:~# cd /var/www/html/

From that location, you need to download the installation package for SMF. Run the wget command along with the download link as shown in the following command.

root@linuxhelpubnt:/var/www/html# wget https://download.simplemachines.org/index.php/smf_2-0-14_install.zip
--2017-11-17 06:20:18--  https://download.simplemachines.org/index.php/smf_2-0-14_install.zip
Resolving download.simplemachines.org (download.simplemachines.org)... 66.71.247.134, 66.71.247.135
Connecting to download.simplemachines.org (download.simplemachines.org)|66.71.247.134|:443... connected.
HTTP request sent, awaiting response... 200 OK
Syntax error in Set-Cookie:  at position 0.
Length: unspecified [application/octet-stream]
Saving to: ‘ smf_2-0-14_install.zip’ 

smf_2-0-14_install.     [                < =>  ]   2.57M   734KB/s    in 3.6s    

2017-11-17 06:20:23 (734 KB/s) - ‘ smf_2-0-14_install.zip’  saved [2694219]

Once the file is downloaded, you need to extract the file by making use of the following command.

root@linuxhelpubnt:/var/www/html# unzip smf_2-0-14_install.zip -d smf
Archive:  smf_2-0-14_install.zip
  inflating: smf/proxy.php           
  inflating: smf/SSI.php             
  inflating: smf/subscriptions.php   
  inflating: smf/index.php           
  inflating: smf/Themes/index.php    
  inflating: smf/Themes/default/Stats.template.php  
  inflating: smf/Themes/default/ManageScheduledTasks.template.php  
  inflating: smf/Themes/default/Notify.template.php  
  inflating: smf/Themes/default/Themes.template.php  
  inflating: smf/Themes/default/ManageMail.template.php  

.
.
.
inflating: smf/install_2-0_postgresql.sql  
  inflating: smf/install_2-0_mysql.sql  
  inflating: smf/install_2-0_sqlite.sql

Once it is done, you need to change the ownership of extracted directory by making use of the following command.

root@linuxhelpubnt:/var/www/html# chown -R www-data:www-data smf

And then, you need to create configure the VirtualHost for SMF. For that, you need to open the .conf file. So, execute the following command.

root@linuxhelpubnt:/var/www/html# nano /etc/apache2/sites-available/smf.conf

And when the file is open, make the following configuration in that file.

< VirtualHost *:80> 
ServerAdmin admin@smf.com
DocumentRoot /var/www/html/smf/
ServerName smf.com
ServerAlias www.smf.com
< Directory /var/www/html/smf/> 
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
< /Directory> 
ErrorLog /var/log/apache2/smf.com-error_log
CustomLog /var/log/apache2/smf.com-access_log common
< /VirtualHost> 

Once the configuration is done, you shall save and exit the file.

You should also make an entry in the host file by making use of the following command.

root@linuxhelpubnt:/var/www/html# nano /etc/hosts
< ip addr>   smf.com

Once it is done, make sure you don' t forget to enable the newly created .conf file. You shall execute that action by making use of the following command.

root@linuxhelpubnt:/var/www/html# a2ensite smf.conf 
Enabling site smf.
To activate the new configuration, you need to run:
  service apache2 reload


When it is done, you shall restart your Apache service as follows.

root@linuxhelpubnt:/var/www/html# systemctl restart apache2.service


We shall now continue the process in the browser. So, open the browser and navigate to your domain. The SMF installer appears on your scree, click on the Continue option to proceed with the installation.

installer

In the following page, enter all the database details and click Continue to proceed to the next stage.
database
progress

In this page, you need to configure the Forum Settings. So, make sure you enter all the necessary details.
forum settings

Click Continue when you have entered all the needed details.
Overall progress

In the following page, the information related to the database is displayed.

populated database

You should now create the account for the admin. So give all the necessary details in the relevant fields.
create account

And, click on the Continue option to proceed further.
details

Installation has been completed, all you need to do now is to click on the checkbox and click on the “ your newly installed forum” text. Doing this will take you to your forum.
Installation complete

The Home page of your SMF forum appears now.
admin
With this, the installation of SMF on Ubuntu 17.04. comes to an end.


Tags:
gabriel
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How to create a VirtualHost for your SMF?

A

By creating a new conf file and add your site configuration inside it as follows.

Q

How do I extract files in an archive?

A

Use the following command:

# unzip smf_2-0-15_install.zip -d /srv/www/htdocs/

Q

How to install Simple Machines Forum on OpenSUSE?

A

Run the following command:

# wget https://download.simplemachines.org/index.php/smf_2-0-15_install.zip



Select Modify Profile > Account Settings from the profile menu buttons or sidebar.

Choose a new Primary Membergroup for this user

Click the link [ show additional groups ] t

Q

How to restart the Apache Service?

A

Use the following command:

# systemctl restart apache

Q

How can I give the executable permission for zip file?

A

Run the following command:

# chmod +x smf_2-0-15_install.zip

Related Tutorials in How to install Simple Machine Forum on Ubuntu 16.04

Related Tutorials in How to install Simple Machine Forum on Ubuntu 16.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install Simple Machine Forum on Ubuntu 16.04

Related Forums in How to install Simple Machine Forum on Ubuntu 16.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install Simple Machine Forum on Ubuntu 16.04

Related News in How to install Simple Machine Forum on Ubuntu 16.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.