Gas CMS is a free and open supply content material administration system written in PHP that can be utilized to develop web sites and blogs. It’s primarily based on CodeIgniter PHP internet framework that can be utilized for superior internet improvement.
Gas CMS comes with wide selection of options a few of them are listed under:
- Helps a number of language, so you may create web optimization pleasant web page content material in any language you need.
- Simply edit your web page’s knowledge on the precise web page and see outcomes instantly.
- Add and handle your websites’ pictures, PDFs, fashion sheets and javascript.
- Simply create kinds for format variables and use them to construct pages.
On this tutorial, we’ll discover ways to set up Gas CMS on Ubuntu 18.04.
Conditions
- A server operating Ubuntu 18.04.
- A non-root consumer with sudo privileges.
Set up LAMP Server
Gas CMS runs on internet server, written in PHP and makes use of MariaDB for the database. So you have to to put in Apache, MariaDB, and PHP to your system.
First, set up Apache and MariaDB utilizing the next command:
sudo apt-get set up apache2 mariadb-server -y
As soon as Apache and MariaDB are put in, begin Apache and MariaDB service and allow them to start out on boot utilizing the next command:
sudo systemctl begin apache2
sudo systemctl allow apache2
sudo systemctl begin mysql
sudo systemctl allow mysql
By default, the most recent model of PHP not obtainable in Ubuntu 18.04. So you have to so as to add PHP repository to your system. You may set up Ondrej PHP repository utilizing the next command:
sudo apt-get set up software-properties-common -y
sudo add-apt-repository ppa:ondrej/php
As soon as the repository is put in, replace the repository and set up PHP7.1 utilizing the next command:
sudo apt-get replace -y
sudo apt-get set up php7.1 libapache2-mod-php7.1 php7.1-gd php7.1-xml php7.1-cli php7.1-zip php7.1-common php7.1-sqlite3 php7.1-mcrypt php7.1-curl php7.1-intl php7.1-mbstring php7.1-xmlrpc php7.1-mysql -y
As soon as PHP is put in, you have to to change php.ini file. You are able to do this with the next command:
sudo nano /and so forth/php/7.1/apache2/php.ini
Make the next modifications:
file_uploads = On allow_url_fopen = On short_open_tag = On memory_limit = 256M upload_max_filesize = 120M max_execution_time = 300 date.timezone = Asia/Kolkata
Save and shut the file, if you end up completed.
Configure MariaDB
By default, MariaDB set up is just not secured. So you have to to safe it first. You may safe it by operating the next command:
sudo mysql_secure_installation
Reply all of the questions as shwon under:
Enter present password for root (enter for none): Set root password? [Y/n]: N Take away nameless customers? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Take away take a look at database and entry to it? [Y/n]: Y Reload privilege tables now? [Y/n]: Y
As soon as the MariaDB is secured, log in to MariaDB shell with the next command:
mysql -u root -p
Enter your root password when immediate, then create a database and consumer for Gas CMS:
MariaDB [(none)]> CREATE DATABASE fuelcmsdb;
MariaDB [(none)]> CREATE USER ‘fueluser’@’localhost’ IDENTIFIED BY ‘password’;
Subsequent, grant all privileges to Gas CMS utilizing the next command:
MariaDB [(none)]> GRANT ALL ON fuelcmsdb.* TO ‘fueluser’@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;
Subsequent, flush the privileges utilizing the next command:
MariaDB [(none)]> FLUSH PRIVILEGES;
Lastly, exit from the MariaDB shell with the next command:
MariaDB [(none)]> exit
Set up Gas CMS
First, you have to to obtain the most recent model of the Gas CMS. You may obtain it from the Git repository utilizing the next command:
wget https://github.com/daylightstudio/FUEL-CMS/archive/master.zip
Subsequent, unzip the downloaded file utilizing the next command:
unzip grasp.zip
Subsequent, copy the extracted file to the Apache internet root listing:
sudo cp -r FUEL-CMS-master /var/www/html/fuelcms
Subsequent, give correct permission to the fuelcms listing:
sudo chown -R www-data:www-data /var/www/html/fuelcms/
sudo chmod -R 755 /var/www/html/fuelcms/
Subsequent, you have to to create an Apache digital host file for Gas CMS. You are able to do this with the next command:
sudo nano /and so forth/apache2/sites-available/fuelcms.conf
Add the next strains:
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/fuelcms ServerName instance.com <Listing /var/www/html/fuelcms/> Choices FollowSymlinks AllowOverride All Require all granted </Listing> ErrorLog ${APACHE_LOG_DIR}/fuelcms_error.log CustomLog ${APACHE_LOG_DIR}/fuelcms_access.log mixed </VirtualHost>
Save and shut the file, then allow fuelcms digital cms file and Apache mode rewrite module utilizing the next command:
sudo a2ensite fuelcms
sudo a2enmod rewrite
Lastly, restart Apache internet server utilizing the next command:
sudo systemctl restart apache2
Subsequent, you have to to import the fuel_schema.sql into the newly created database:
sudo mysql -u fueluser -p fuelcmsdb < /var/www/html/fuelcms/gas/set up/fuel_schema.sql
Subsequent, you have to to configure database settings in database.php file. You are able to do this utilizing the next command:
sudo nano /var/www/html/fuelcms/gas/software/config/database.php
Make the next modifications:
$db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'fueluser', 'password' => 'password', 'database' => 'fuelcmsdb', 'dbdriver' => 'mysqli', 'dbprefix' => '',
Save and shut the file, if you end up completed.
Subsequent, you have to to generate random key utilizing Openssl:
openssl rand -base64 20
Output:
82SbyDJz4J9zsRk4E5l/FThYTK4=
Subsequent, open config.php file and paste the above key:
sudo nano /var/www/html/fuelcms/gas/software/config/config.php
Make the next modifications:
$config['encryption_key'] = '82SbyDJz4J9zsRk4E5l/FThYTK4=';
Save the file, then open MY_fuel.php file to allow admin login:
sudo nano /var/www/html/fuelcms/gas/software/config/MY_fuel.php
Make the next modifications:
// whether or not the admin backend is enabled or not $config['admin_enabled'] = TRUE; $config['fuel_mode'] = 'AUTO';
Save and shut the file, if you end up completed.
Entry Gas CMS
Gas CMS is now put in and configured, it is time to entry Gas CMS internet interface.
Open your internet browser and kind the URL http://example.com/fuel, you’ll be redirected to the next web page:
Now, present admin username as admin and password as admin, then click on on the Login button. You must see the next web page:
Comments