How to install PHP-Fusion 9 on Debian 8

This tutorial will show you how to install PHP-Fusion 9 on Debian 8 with Apache, PHP and MySQL installed on it. PHP-Fusion is a fast and lightweight open source Content Management System (CMS) written in PHP. PHP-Fusion 9 incorporates common features found in other content management systems. Comparing it to PHP-Fusion 7, there are some new features like a fully integrated and comprehensive SEO engine, full core support for multilingual content, PDO support, Bootstrap support, new themes, etc. PHP-Fusion comes with a simple yet comprehensive administration system.

This tutorial has been tested and written for Debian 8, but it should work on any Linux distribution.

This installation guide assumes that Apache, MySQL and PHP are already installed and configured on the virtual server. PHP-Fusion 9 requires:

  • PHP 5.3.4 or higher
  • Apache web server> = 2.0 is built with mod_rewrite module and is allowed with the following directives: RewriteEngine, RewriteBase, RewriteCond and RewriteRule;
  • MySQL 4.1 or higher installed on your virtual server.

Let’s start with the installation. Download the latest PHP-Fusion 9 version available at to a directory on the server and extract it using the following commands:

                      cd /opt
unzip -d /var/www/html/
mv /var/www/html/PHP-Fusion-9.00/ /var/www/html/php-fusion/

Create a new Apache virtual host directive. For example, you can create a new Apache configuration file called ‘php-fusion.conf’ on the virtual server:

                      touch /etc/apache2/sites-available/php-fusion.conf

Then run the following command:

                      ln -s /etc/apache2/sites-available/php-fusion.conf /etc/apache2/sites-enabled/php-fusion.conf

Or use a2ensite to enable the “php-fusion.conf ‘configuration in Apache:

                      sudo a2ensite php-fusion.conf

Edit the config file ‘php-fusion.conf’:

                      vi /etc/apache2/sites-available/php-fusion.conf

and add the following lines to it:

                      <VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/php-fusion/
<Directory /var/www/html/php-fusion/>
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/
CustomLog /var/log/apache2/ common

Set the appropriate file permissions for the Apache web server to write to the ‘administration / db_backups’, ‘ftp_upload’ and ‘images’ directory and the ‘images / imagelist.js’, ‘images / avatars’, ‘config_temp.php’ and files ‘robots.txt’ inside the / var / www / html / php-fusion / directory:

                      sudo chown -R www-data:www-data /var/www/html/php-fusion/

Enable Apache2 rewrite module if not already done:

                      sudo a2enmod rewrite

Start the Apache web server again for the changes to take effect:

                      service apache2 restart

Create a new MySQL database for PHP-Fusion to use and assign a user to it with full access rights:

                      mysql -u root -p
mysql> CREATE DATABASE phpfusiondb;
mysql> GRANT ALL PRIVILEGES ON phpfusiondb.* TO 'phpfusionuser'@'localhost' IDENTIFIED BY 'свой-пароль' WITH GRANT OPTION;
mysql> quit

Remember to replace your-password with a strong password.

Open your web browser, go to and follow the simple instructions, then login to the PHP-Fusion admin panel and configure it according to your needs.

For security reasons, delete everything in the / install directory and chmod your ‘config.php’ configuration file to 0644:

                      rm -rf /var/www/html/php-fusion/install
chmod 644 /var/www/html/php-fusion/config.php

That’s all. PHP-Fusion installation is now complete.

Related Posts