sudo systemctl start httpd\nsudo systemctl enable httpd<\/code><\/pre>\n\n\n\nInstall PHP 7.1<\/h2>\n\n\n\n
We will use PHP 7.1 to obtain maximum security and stability. First, add and enable the Remi repository.<\/p>\n\n\n\n
sudo rpm -Uvh http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\nsudo yum -y install yum-utils\nsudo yum-config-manager --enable remi-php71<\/code><\/pre>\n\n\n\nInstall the latest version of PHP along with the modules required by Vanilla Forum.<\/p>\n\n\n\n
sudo yum -y install php php-gd php-mysqli php-mbstring php-curl php-cli php-pear php-devel php-openssl<\/code><\/pre>\n\n\n\nInstall MariaDB<\/h2>\n\n\n\n
MariaDB is a fork of MySQL. Add the MariaDB repository into your system. The default YUM<\/code> repository contains an older version of MariaDB, which is unsupported by Vanilla.<\/p>\n\n\n\necho \"[mariadb]\nname = MariaDB\nbaseurl = http:\/\/yum.mariadb.org\/10.2\/centos7-amd64\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\ngpgcheck=1\" | sudo tee \/etc\/yum.repos.d\/mariadb.repo<\/code><\/pre>\n\n\n\nInstall MariaDB.<\/p>\n\n\n\n
sudo yum -y install mariadb mariadb-server<\/code><\/pre>\n\n\n\nStart MariaDB and enable it to automatically start at boot time.<\/p>\n\n\n\n
sudo systemctl start mariadb\nsudo systemctl enable mariadb<\/code><\/pre>\n\n\n\nBefore configuring the database, you will need to secure MariaDB first.<\/p>\n\n\n\n
sudo mysql_secure_installation<\/code><\/pre>\n\n\n\nYou will be asked for the current MariaDB root password. By default, there is no root password in a fresh MariaDB installation. Press the “Enter<\/code>” key to proceed. Set a strong password for the root<\/code> user of your MariaDB server and answer “Y<\/code>” to all of the other questions that are asked. The questions asked are self-explanatory.<\/p>\n\n\n\nLog into the MySQL shell as root.<\/p>\n\n\n\n
mysql -u root -p<\/code><\/pre>\n\n\n\nProvide the password for the MariaDB root user to log in.<\/p>\n\n\n\n
Run the following queries to create a database and a database user for the Vanilla installation.<\/p>\n\n\n\n
CREATE DATABASE vanilla_data CHARACTER SET utf8 COLLATE utf8_general_ci;\nCREATE USER 'vanilla_user'@'localhost' IDENTIFIED BY 'StrongPassword';\nGRANT ALL PRIVILEGES ON vanilla_data.* TO 'vanilla_user'@'localhost';\nFLUSH PRIVILEGES;\nEXIT;<\/code><\/pre>\n\n\n\nYou can replace the database name vanilla_data<\/code> and username vanilla_user<\/code> according to your choice. Please make sure to change StrongPassword<\/code> to a very strong password.<\/p>\n\n\n\nInstall Vanilla forum<\/h2>\n\n\n\n
Download the Vanilla forum zip archive.<\/p>\n\n\n\n
wget https:\/\/open.vanillaforums.com\/get\/vanilla-core.zip<\/code><\/pre>\n\n\n\nInstall unzip.<\/p>\n\n\n\n
sudo yum -y install unzip<\/code><\/pre>\n\n\n\nExtract the archive.<\/p>\n\n\n\n
sudo unzip vanilla-core.zip -d \/var\/www\/vanilla<\/code><\/pre>\n\n\n\nProvide the appropriate ownership.<\/p>\n\n\n\n
sudo chown -R apache:apache \/var\/www\/vanilla<\/code><\/pre>\n\n\n\nAllow HTTP<\/code> traffic on port 80<\/code> through the firewall.<\/p>\n\n\n\nsudo firewall-cmd --zone=public --permanent --add-service=http\nsudo firewall-cmd --zone=public --permanent --add-service=https\nsudo firewall-cmd --reload<\/code><\/pre>\n\n\n\nCreate virtual host<\/h2>\n\n\n\n
Create a virtual host for your Vanilla forum site.<\/p>\n\n\n\n
sudo nano \/etc\/httpd\/conf.d\/forum.example.com.conf<\/code><\/pre>\n\n\n\nPopulate the file.<\/p>\n\n\n\n
<VirtualHost *:80>\n ServerName forum.example.com\n DocumentRoot \/var\/www\/vanilla\n <Directory \/var\/www\/vanilla>\n Options Indexes FollowSymLinks MultiViews\n AllowOverride All\n Order allow,deny\n allow from all\n <\/Directory>\n<\/VirtualHost><\/code><\/pre>\n\n\n\nRestart Apache.<\/p>\n\n\n\n
sudo systemctl restart httpd<\/code><\/pre>\n\n\n\nWrapping Up<\/h2>\n\n\n\n
Now that you have successfully installed and configured Vanilla forum, you can access the application on http:\/\/forum.example.com<\/code>. Provide the database and administrator details. Once you have provided the required database and admin details, the setup will write into the database and you will be taken to the administration interface. You can now configure the forum according to your needs.<\/p>\n\n\n\nCongratulations, you have successfully installed Vanilla forum in CentOS 7 server.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231,242,245,587],"manual_kb_tag":[615,616,647,649,651,655,656],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3840"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=3840"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3840\/revisions"}],"predecessor-version":[{"id":3841,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3840\/revisions\/3841"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=3840"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=3840"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=3840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}