How to install Simple Machines Forum (SMF) on your VPS

Make sure a LAMP stack was installed while installing your vps.

Step 1- Setup the SMF database and obtain SMF files

Open phpmyadmin.

Create a new user.

Go to Users.

Add user.

Choose a user name fe smf and select the option local under Host. Then type in a pass word. Select . Don’t touch global privileges. Click on go

You will then need to obtain the latest SMF package from Simple Machines and extract the files into your web server’s directory. The commands below extract the files into the root web directory (/home/username/public_html)

First create a directory called forum in the folder public_html with mc.

Now open this new directory.

cd /home/username/public_html/forum

Use the program wget to download from the internet the latest version of SMF. The latest current version is 2.0.8 at the time of writing.

Make sure you check the latest version.

wget http://mirror.ord.simplemachines.org/index.php/smf_2-0-8_install.tar.gz

Extract the files.

tar xvfz smf_2-0-8_install.tar.gz

Now remove the installation file with the command rm (remove).

rm -rf smf_2-0-8_install.tar.gz
Step 2 – Go through the steps of the Installer.

Once the SMF files have been extracted and permissions changed, navigate to the directory forum in your web browser.

 

http://yourvpsip/~username/forum

Checking Files are Writable

Some files need to be writable for SMF to work properly. This step allows you to let the installer make them writable for you. However, in some cases it won’t work – in that case, please make the following files 777 (writable, 755 on some hosts):

  • attachments
  • avatars
  • cache
  • Packages
  • Packages/installed.list
  • Smileys
  • Themes
  • agreement.txt
  • Settings.php
  • Settings_bak.php

Go to terminal.

Use chmod change mode.

spicey@voodoo:~/public_html/forum$ chmod 777 ./attachments/
spicey@voodoo:~/public_html/forum$ chmod 777 ./avatars/
spicey@voodoo:~/public_html/forum$ chmod 777 ./cache
spicey@voodoo:~/public_html/forum$ chmod 777 ./Packages
spicey@voodoo:~/public_html/forum$ chmod 777 ./Packages/installed.list

spicey@voodoo:~/public_html/forum$ chmod 777 ./Smileys
spicey@voodoo:~/public_html/forum$ chmod 777 ./agreement.txt
spicey@voodoo:~/public_html/forum$ chmod 777 ./Settings.php
spicey@voodoo:~/public_html/forum$ chmod 777 ./Settings_bak.php

Now go back to the smf installer. Continue.

Database Server Settings
These are the settings to use for your database server. If you don’t know the values, you should ask your host what they are.

This is nearly always localhost – so if you don’t know, try localhost.

Fill in the username you need to connect to your database here.
If you don’t know what it is, try the username of your ftp account, most of the time they are the same.

Here, put the password you need to connect to your database.
If you don’t know this, you should try the password to your ftp account.

Fill in the name of the database you want to use for SMF to store its data in. If this database does not exist, this installer will try to create it.

The prefix for every table in the database. Do not install two forums with the same prefix!
This value allows for multiple installations in one database.
Now click on continue.
Forum Settings
This page requires you to define a few key settings for your forum. SMF has automatically detected key settings for you.

This is the name of your forum, ie. “The Testing Forum”.

This is the URL to your forum without the trailing ‘/’!.
In most cases, you can leave the default value in this box alone – it is usually right.
Gzip Output:

This function does not work properly on all servers, but can save you a lot of bandwidth.
Click here to test it. (it should just say “PASS”.)
Database Sessions:

This feature is almost always for the best, as it makes sessions more dependable.
UTF-8 Character Set:

This feature lets both the database and the forum use an international character set, UTF-8. This can be useful when working with multiple languages that use different character sets.
Allow Stat Collection:

If enabled, this will allow Simple Machines to visit your site once a month to collect basic statistics. This will help us make decisions as to which configurations to optimize the software for. For more information please visit our info page.
Create Your Account

The installer will now create a new administrator account for you.

Choose the name you want to login with.
This can’t be changed later, but your display name can be.

Fill in your preferred password here, and remember it well!

(just for verification.)

Provide your email address as well. This must be a valid email address.
Database Password

The installer requires that you supply the database password to create an administrator account, for security reasons.

 

Leave a Reply

Your email address will not be published. Required fields are marked *