Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":3021,"date":"2020-01-10T20:20:13","date_gmt":"2020-01-10T20:20:13","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=3021"},"modified":"2020-01-10T20:20:13","modified_gmt":"2020-01-10T20:20:13","slug":"install-simple-machines-forum-on-the-one-click-lemp-application","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/install-simple-machines-forum-on-the-one-click-lemp-application\/","title":{"rendered":"Install Simple Machines Forum on the One-Click LEMP Application"},"content":{"rendered":"

Introduction<\/h3>\n

Simple Machines Forum (SMF) is a popular open-source forum. In this article, I will show you how to install Simple Machines Forum on a AKLWEB HOST VPS. At the time of writing, AKLWEB HOST did not offer a one click forum.<\/p>\n

Prerequisites<\/h3>\n

I assume that you have just launched a “One-Click LEMP” AKLWEB HOST App, and are currently logged into it as the root user.<\/p>\n

Step one: Create a database<\/h3>\n

Log into the MySQL console. It will prompt you for the root password, which you can learn by opening\u00a0\/root\/.my.cnf<\/code>\u00a0with your favorite text editor.<\/p>\n

mysql -u root -p\r\n<\/code><\/pre>\n

Create a database for SMF. The database name\u00a0smf<\/code>, user name\u00a0myusername<\/code>, and password\u00a0mypassword<\/code>\u00a0may be replaced with your own values.<\/p>\n

create database smf;\r\ncreate user 'myusername'@'localhost' identified by 'mypassword';\r\ngrant all privileges on smf.* to 'myusername'@'localhost' identified by 'mypassword' with grant option;\r\nflush privileges;\r\nexit;\r\n<\/code><\/pre>\n

Step two: Download the Simple Machines Forum package<\/h3>\n

First, create a folder to store the program.<\/p>\n

mkdir \/usr\/share\/nginx\/html\/forum\/\r\n<\/code><\/pre>\n

At the time of writing, the latest stable version of Simple Machines Forum is 2.0.10.<\/p>\n

Visit SMF\u00a0official website<\/a>\u00a0from your browser. Click the “tar.bz2 icon” under “Full install” to download the archive file\u00a0smf_2-0-10_install.tar.bz2<\/code>. Once the download finishes, upload it to the\u00a0forum<\/code>\u00a0folder that we just created on your VPS by using an SCP\/SFTP tool.<\/p>\n

Go back to the terminal window, unzip and delete the package.<\/p>\n

cd \/usr\/share\/nginx\/html\/forum\/\r\ntar -jxvf smf_2-0-10_install.tar.bz2\r\nrm -f smf_2-0-10_install.tar.bz2\r\n<\/code><\/pre>\n

Step three: Configure and install SMF from your browser<\/h3>\n

Visit\u00a0http:\/\/[SERVER_IP]\/forum\/<\/code>\u00a0in your browser. Substitute the\u00a0[SERVER_IP]<\/code>\u00a0with the IP address of your VPS.<\/p>\n

1) On the step of “Welcome”, Click the button “Continue” to initiate the installation wizard. Follow the on-screen instructions to configure your SMF installation.<\/p>\n

2) On the step of “Writable Check”, the installation wizard will prompt you to add write permissions to some directories and files. To do so, input the following command from your terminal window.<\/p>\n

chmod 0777 attachments avatars cache Packages Packages\/installed.list Smileys Themes agreement.txt Settings.php Settings_bak.php\r\n<\/code><\/pre>\n

Then, from your browser, click the link titled “Click here” at the left bottom to recheck write permissions on these items.<\/p>\n

3) On the step of “Database Settings”, you need to input database parameters as specified below.<\/p>\n

Remember to replace the database username\u00a0myusername<\/code>, the database password\u00a0mypassword<\/code>, the database name\u00a0smf<\/code>, and the table prefix\u00a0smf_<\/code>\u00a0with your own ones.<\/p>\n

Server name: localhost\r\nUsername: myusername\r\nPassword: mypassword\r\nDatabase name: smf\r\nTable prefix: smf_\r\n<\/code><\/pre>\n

Click “Continue”.<\/p>\n

4) On the step of “Forum Settings”, you need to input some configuration settings to your forum.<\/p>\n