How to install PHP Fusion 7 in CentOS 7
To install PHP Fusion 7 in CentOS 7
PHP-Fusion is a lightweight open source content management system written in PHP. It utilizes a MySQL database to store your site content. It includes a complete administration system to manage your sites. It is simple to install PHP Fusion 7 and this article covers the method to install PHP 7 on CentOS 7.
Installing PHP Fusion 7
For installing PHP fusion, you need to have LAMP sack installed in your system. So, make sure that your system has all the necessary software. If you want to download the PHP Fusion package, make sure you use the wget command as follows.
[root@linuxhelp1 Desktop]# wget http://downloads.sourceforge.net/project/php-fusion/PHP-Fusion%20Archives/7.x/PHP-Fusion-7.02.07.zip
--2017-10-28 17:16:16-- http://downloads.sourceforge.net/project/php-fusion/PHP-Fusion%20Archives/7.x/PHP-Fusion-7.02.07.zip
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://excellmedia.dl.sourceforge.net/project/php-fusion/PHP-Fusion%20Archives/7.x/PHP-Fusion-7.02.07.zip [following]
--2017-10-28 17:16:17-- https://excellmedia.dl.sourceforge.net/project/php-fusion/PHP-Fusion%20Archives/7.x/PHP-Fusion-7.02.07.zip
Resolving excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)... 202.153.32.19
Connecting to excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)|202.153.32.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5918180 (5.6M) [application/octet-stream]
Saving to: ‘ PHP-Fusion-7.02.07.zip’
100%[========================================================================> ] 59,18,180 557KB/s in 10s
2017-10-28 17:16:28 (568 KB/s) - ‘ PHP-Fusion-7.02.07.zip’ saved [5918180/5918180]
After downloading it, make sure you extract the package with the help of the following command.
[root@linuxhelp1 Desktop]# unzip PHP-Fusion-7.02.07.zip
Archive: PHP-Fusion-7.02.07.zip
creating: PHP-Fusion-7.02.07/
inflating: PHP-Fusion-7.02.07/agpl.txt
creating: PHP-Fusion-7.02.07/files/
creating: PHP-Fusion-7.02.07/files/administration/
&hellip
&hellip
&hellip
creating: PHP-Fusion-7.02.07/upgrade v7/
inflating: PHP-Fusion-7.02.07/upgrade v7/upgrade.php
creating: PHP-Fusion-7.02.07/upgrade v701/
inflating: PHP-Fusion-7.02.07/upgrade v701/upgrade.php
Later, you need to create directory in /var/www/html directory as follows.
[root@linuxhelp1 Desktop]# mkdir /var/www/html/test.linuxhelp1.com
Then, you should copy files contents in php fusion directory to the newly created directory. Run the following command to execute that action.
[root@linuxhelp1 Desktop]# cp -R PHP-Fusion-7.02.07/files/* /var/www/html/test.linuxhelp1.com/
Next, rename the _config.php file to config.php as follows.
[root@linuxhelp1 test.linuxhelp1.com]# mv _config.php config.php
After that, you need to change the ownership for the directory. Run the following command for the same purpose.
[root@linuxhelp1 test.linuxhelp1.com]# chown -R apache:apache /var/www/html/test.linuxhelp1.com/
Once it is done, you ought to configure the database for php fusion. So, enter into your database and make the necessary modifications.
[root@linuxhelp1 test.linuxhelp1.com]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with or g. Your MariaDB connection id is 10 Server version: 5.5.56-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE phpfusion Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON phpfusion.* to phpfusionuser@localhost identified by ' password' Query OK, 0 rows affected (0.03 sec) MariaDB [(none)]> FLUSH PRIVILEGES Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Bye
Next, you should configure the apache virtual host for PHP Fusion. So, create vhosts.conf file in conf.d directory by using the following command.
[root@linuxhelp1 test.linuxhelp1.com]# vim /etc/httpd/conf.d/vhosts.conf
And then, add the following line to the file.
IncludeOptional vhosts.d/*.conf
Next, create vhosts.d directory in /etc/httpd directory as follows.
[root@linuxhelp1 test.linuxhelp1.com]# mkdir /etc/httpd/vhosts.d
Later, create the virtual host configuration file in vhosts.d directory.
[root@linuxhelp1 test.linuxhelp1.com]# vim /etc/httpd/vhosts.d/test.linuxhelp1.com.conf
Make the following changes.
< VirtualHost 192.168.7.201:80> ServerAdmin linuxhelpserver@gmail.com DocumentRoot " /var/www/html/test.linuxhelp1.com" ServerName test.linuxhelp1.com ServerAlias www.test.linuxhelp1.com ErrorLog " /var/log/httpd/test-error_log" CustomLog " /var/log/httpd/test-access_log" combined Directory " /var/www/html/test.linuxhelp1.com/" > DirectoryIndex index.php Options FollowSymLinks AllowOverride All Require all granted < /Directory> < /VirtualHost>
Now save the file and exit.
Next, restart the apache web server by running the following command.
[root@linuxhelp1 test.linuxhelp1.com]# systemctl restart httpd
We should now open the web browser and navigate to http://192.168.7.201 The PHP fusion installer appears on your screen. Choose your language and proceed further.

Check all the folder and file permission. Here all of them are correct.

Next, you should enter the database information and click on Next.

The config file is written and the database tables are created.

Later, you should enter the admin user details.

The installation has been completed. Click on the Finish option.

Now, you need to enter the login details and log in.

Once you are done, it will ask you to remove the setup.php for security purpose.

Run the following command to remove the file.
[root@linuxhelp1 test.linuxhelp1.com]# rm -rf setup.php
You can view the discussion forum.

Also, you can check the Admin settings.

With this, the installation of PHP Fushion comes to an end.
Comments ( 0 )
No comments available