LinuxTutorialsUbuntu

How To Install Simple Machines Forum on Ubuntu 14.04

Install Simple Machines Forum on Ubuntu 14.04

In this tutorial, we will show you how to install the Simple Machines Forum on Ubuntu 14.04. For those of you who didn’t know, Simple Machines Forum (SMF) is a free, professional-grade software package that allows you to set up your own online community within minutes. It is open-source software that is written in PHP and uses a MySQL/MariaDB database. It provides many features and it is user-friendly.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you the step-by-step installation Simple Machines Forum on Ubuntu 14.04.

Prerequisites

  • A server running one of the following operating systems: Ubuntu 14.04, and any other Debian-based distribution.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Simple Machines Forum on Ubuntu 14.04

Step 1. First of all, make sure that all packages are up to date.

apt-get update -y

Step 2. Install LAMP (Linux, Apache, MySQL, PHP) server and include some PHP extensions.

apt-get -y install apache2 mysql-server mysql-client php5 php5-mysql php5-gd sendmail

Start Apache and MySQL services:

/etc/init.d/apache2 start
/etc/init.d/mysql start

Step 3. Configuring MySQL.

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.

mysql_secure_installation

Create a new MySQL database for Simple Machines on your server:

## mysql -u root -p
CREATE DATABASE smf;
CREATE USER 'smf_user'@'localhost' IDENTIFIED BY 'Your_Paasword';
GRANT ALL PRIVILEGES ON `smf`.* TO 'smf_user'@'localhost';
FLUSH PRIVILEGES;

Step 4. Install the Simple Machines Forum on the Ubuntu system.

Now we download the latest version of the SMF installer on your server:

cd /var/www
wget https://download.simplemachines.org/index.php?thanks;filename=smf_2-0-19_install.tar.gz
tar xvfz smf_2-0-19_install.tar.gz
rm -rf smf_2-0-19_install.tar.gz

Grant the right permissions for the folders and files:

chown www-data:www-data /var/www/* -R

Step 5. Accessing the Simple Machines Forum.

SMF will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com or http://your-server-ip. You should see the SMF installer:

Install Simple Machines Forum on Ubuntu 14.04

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 have successfully installed the SMF. Thanks for using this tutorial for installing Simple Machines Forum on Ubuntu 14.04 system. For additional help or useful information, we recommend you check the official SMF website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button