How To Install PHP-Fusion on CentOS 7

r00t November 6, 2015

php-fusion-logo

In this tutorial we will show you how to install and configuration of PHP-Fusion on your CentOS 7 server. For those of you who didn’t know, PHP-Fusion is a light-weight open-source content management system (CMS) written in PHP. It uses a mySQL database to store your site content and includes a simple yet comprehensive adminstration system. PHP-Fusion includes the most common features you would expect to see in many other CMS packages including news, articles, forums, polls, shoutbox, comments, ratings, much more.

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 through the step by step installation PHP-Fusion on CentOS 7 server.

Install PHP-Fusion on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Install LAMP server.

A CentOS 7 LAMP server is required. If you do not have LAMP installed, you can follow our guide here.

Step 3. Install PHP-Fusion.

Download the latest stable version of PHP-Fusion, At the moment of writing this article it is version 7:

Now, we’ll rename _config.php file to config.php by running the command below:

We will need to change some folders permissions:

Step 4. Configuring MariaDB.

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

Configure it like this:

Next we will need to log in to the MariaDB console and create a database for the PHP-Fusion. Run the following command:

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for PHP-Fusion installation:

Step 5. Configuring Apache web server for PHP-Fusion.

It is time to configure Apache. Create a ‘/etc/httpd/conf.d/vhosts.conf’ file with the following content

Create a ‘/etc/httpd/vhosts.d’ directory where we will put all our virtual hosts:

Create a virtual host for our domain:

Add the following lines at the end of the file:

Step 6. Accessing PHP-Fusion.

PHP-Fusion will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed PHP-Fusion. Thanks for using this tutorial for installing PHP-Fusion CMS in CentOS 7 system. For additional help or useful information, we recommend you to check the official PHP-Fusion web site.

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 a best deal!
Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit1Pin on Pinterest3
The Tags:

Leave a Comment