How To Install Fuel CMS on CentOS 7

Fuel CMS is a content management system for premium sites. This system is built on the popular PHP Codelginter web platform. Most content editors use this particular CMS because it has an attractive look. Developers like it for its openness and thoughtfulness.

In this article we will look at how you can install Fuel CMS on CentOS 7. For this CMS, you will need MySQL, since the Fuel administrator does not currently support other databases.

PHP installation

First, you need to configure the WebtaticYUM repository

sudo rpm -Uvh

Then, download and install PHP

sudo yum install -y php72w php72w-cli php72w-fpm php72w-mysqlnd php72w-common

Checking PHP Version

php --version

Next, you will need to start and enable the PHP-FPM service

sudo systemctl start php-fpm.service
sudo systemctl enable php-fpm.service

Install MariaDB

Set up the MariaDB repository. Run sudo vi /etc/yum.repos.d/MariaDB.repo and fill it with the text below:

name = MariaDB
baseurl =

Install the MariaDB database server

sudo yum install -y MariaDB-server MariaDB-client

Launch and enable MariaDB

sudo systemctl start mariadb.service
sudo systemctl enable mariadb.serviсe

Run the mysql_secure_installation script to increase the security of your MariaDB installation.

sudo mysql_secure_installation

Next, log in to MariaDB as the root user

sudo mysql -u root -p
# Enter password:

Create a new MariaDB database and database user and remember the credentials. IMPORTANT! Replace dbname and username with the appropriate names for your configuration. Replace password with a strong password.

Nginx installation

Install Nginx Web Server

sudo yum install -y nginx

Check web server version

nginx -v

Enable Nginx

sudo systemctl start nginx.service
sudo systemctl enable nginx.service

It is important to configure Nginx for Fuel CMS. Run sudo vim /etc/nginx/conf.d/fuel.conf and then fill the file with the configuration shown below:

server {

  listen 80;
  root /var/www/fuel;
  index index.php index.html index.htm;

  location / {
    try_files $uri $uri/ /index.php?q=$uri&$args;

  location ~ \.php$ {
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;


After we check the success of the Nginx configuration

sudo nginx -t

After successfully setting up Nginx, restart it

sudo systemctl reload nginx.service

Install Fuel CMS

The first thing you need is to create the root directory of the document

sudo mkdir -p /var/www/fuel

Change Owner /var/www/fuel on johndoe

sudo chown -R johndoe:johndoe /var/www/fuel

Download the latest version of Fuel CMS

cd /var/www/fuel
mv FUEL-CMS-master/* .
rm -rf FUEL-CMS-master

Then configure fuel/application/config/database.php file with the correct settings of connection to data base

vim fuel/application/config/database.php

Imoprt fuel/install/fuel_schema.sql file to again creating data base

mysql -u username -p password < fuel/install/fuel_schema.sql

IMPORTANT! Replase username and password with your database credentials.
Change the $ config [‘encryption_key’] line 327 found in the fuel/application/config/config.php file. To generate a random key, you can use the openssl tool.

vim fuel/application/config/config.php

Then you need to enable the administrative server by changing $config [‘admin enabled’] = FALSE to TRUE.

vim fuel/application/config/MY_fuel.php

Create the /var/lib/php/session directory and change its owner to the nginx user

sudo mkdir -p /var/lib/php/session && sudo chown -R nginx:nginx /var/lib/php/session

Change the owner of the /var/www/fuel directory to nginx

sudo chown -R nginx:nginx /var/www/fuel

Run sudo vim /etc/php-fpm.d/www.conf and set the user and group to nginx. Initially, they will both be installed in apache

sudo vi /etc/php-fpm.d/www.conf
# user = nginx
# group = nginx

Restart PHP-FPM service

sudo systemctl restart php-fpm.service

Open your website and follow the Fuel CMS installer using your favorite web browser. After installation, the Fuel CMS installer will be up and running. To access the Fuel administration area, add /fuel URL to your site.

Was this article helpful?

Related Articles

Leave A Comment?