Install Simple Machines Forum – Ubuntu 14.04 – LAMP
“Simple Machines Forum” is a free web-based internet forum. it is easy to install and setup. it is also easy to maintaine and customize as well.
Step 1. Create a database
The first thing we are gonna do is to create a database for SMF. so go ahead and login to MySql
$mysql -u root -p
Create your SMF database
$CREATE DATABASE smf;
Create smf databse user
$CREATE USER smfuser@localhost IDENTIFIED BY 'smf-user-password';
Connect the smf user to the database
$GRANT ALL PRIVILEGES ON database.* TO databasesuser@localhost;
Flush All privileges and exit MySql
Step 2. Install SMF
Download and extract SMF with this command
$tar xvfz smf_2-0-9_install.tar.gz
$rm -rf smf_2-0-9_install.tar.gz
Grant the right permissions for the folders and files.
$sudo chmod 777 Smileys Themes agreement.txt Settings.php Settings_bak.php avatars cache Packages Packages/installed.list Smileys attachments
Step 3. Configure SMF
It is time to open your browser and type your_local_ip_or_domain
you should insert database name, database user and the password you made in the start of the guide
Server name: localhost
Username: <span style="color: #800000;">smfuser</span>
Password: <span style="color: #800000;">insert your password here</span>
Database name: <span style="color: #800000;">smf</span>
Table prefix: smf_
when you have made a connection between smf and your databse you should follow the installer guide in your browser. when you are finished with the installation you should remove install.php from the smf directory due to security.
rm -rf /var/www/install.php
Congratulations! you should have your own forum by now.