{"id":17010,"date":"2015-04-03T15:52:40","date_gmt":"2015-04-03T20:52:40","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17010"},"modified":"2024-03-12T03:20:16","modified_gmt":"2024-03-12T08:20:16","slug":"install-simple-machines-forum-on-centos-7-linux-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-simple-machines-forum-on-centos-7-linux-vps\/","title":{"rendered":"Install Simple Machines Forum on a CentOS 7 Linux VPS"},"content":{"rendered":"
Simple Machines Forum, also known as SMF is a very popular forum platform which is widely used. It is an open-source software which is written in PHP and uses a MySQL\/MariaDB database. It provides many features and it is user-friendly. In this tutorial we will show you how to install Simple Machines Forum 2.0.9 on a Linux VPS<\/a>.<\/p>\n <\/p>\n First of all, make sure that all your system software is up to date. For that purpose you can use the command:<\/p>\n The command will automatically update all your system software to the latest version.<\/p>\n Next, make sure that\u00a0you have a LAMP stack installed on your VPS. Else, please use our guide about how to install LAMP on CentOS 7<\/a>. If you have already fulfilled this operation, you are ready to start with the installation of Simple Machines Forum on your CentOS VPS<\/a>.<\/p>\n As we mentioned before, Simple Machines Forum uses a MySQL\/MariaDB database so we need to create a database first, where Simple Machines Forum will store its data. Connect to your VPS via SSH and run the following command:<\/p>\n This will prompt you for a password, so enter your MySQL\/MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for the Simple Machines Forum software. Also, you will need to create a database user as well as to set up a new database password. For that purpose you can use the following commands:<\/p>\n You can replace the name of the database, the database user and the password with values of your choice.<\/p>\n The next step is to download Simple Machines Forum on your CentOS VPS<\/a>. Navigate to your ‘\/var\/www\/html\/’ directory:<\/p>\n Create a new directory for the Simple Machines Forum files:<\/p>\n Navigate to that directory:<\/p>\n And finally, run the following command in order to download Simple Machines Forum on you server:<\/p>\n Next thing you need to do is to unpack the archive:<\/p>\n The software requires some of the directories to obtain\u00a0specific permissions. The command bellow will make those directories writable:<\/p>\n Once you execute the last command, you are done with the installation of Simple Machines Forum using the command line. You will need to access Simple Machines Forum using a web browser and complete the on-screen installation.<\/p>\n Open your favorite web browser and enter:<\/p>\n Please note, you will need to replace the IPADDRESS with the IP address of your CentOS VPS<\/a>. If you do not know the IP address of your VPS, you can simply run the command:<\/p>\n For more information about how to use the software, we recommend you check the official online manual<\/a>.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS hosting services<\/a>, in which case you can simply ask our expert Linux admins to install Simple Machines Forum for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Simple Machines Forum, also known as SMF is a very popular forum platform which is widely used. It is an … <\/p>\nyum -y update<\/pre>\n
mysql -u root -p<\/pre>\n
CREATE DATABASE smf;\nCREATE USER 'smf_user'@'localhost' IDENTIFIED BY 'YoUr_PaSsWoRd';\nGRANT ALL PRIVILEGES ON `smf`.* TO 'smf_user'@'localhost';\nFLUSH PRIVILEGES;<\/pre>\n
cd \/var\/www\/html\/<\/pre>\n
mkdir smf<\/pre>\n
cd smf\/<\/pre>\n
wget http:\/\/mirror.ord.simplemachines.org\/downloads\/smf_2-0-9_install.tar.gz<\/pre>\n
tar -zxvf smf_2-0-9_install.tar.gz<\/pre>\n
chmod 777 attachments avatars cache Packages Smileys Themes<\/pre>\n
http:\/\/IPADDRESS\/smf\/<\/pre>\n
ip addr show<\/pre>\n