Your source of learning, Windows, Linux, Solaris, Virtualization, and Databases

How To Set Up Content Management System (CMS) using OctoberCMS on Ubuntu 16.04

This guide will show you how to install OctoberCMS on an Ubuntu 16.04 with Apache as the web server and MariaDB as database.

October is a free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. A simple and modular CMS that grows with you, with a precise and beautiful interface that comes as second nature.

1. Update Ubuntu 16.04

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot

2. Installing Required Packages

sudo apt-get install apache2 libapache2-mod-php7.0 mariadb-server mariadb-client php7.0 php7.0-mysql php7.0-curl php7.0-gd php7.0-json php7.0-opcache php7.0-xml mcrypt php7.0-mcrypt php7.0-zip php7.0-mbstring wget unzip -y

3. Start the Apache service and enable it to start on boot with the following command:

sudo systemctl start apache2
sudo systemctl enable apache2

4. Start the MariaDB service and enable it to start on boot time with the following command:

sudo systemctl start mysql
sudo systemctl enable mysql

5. Configure MariaDB with the following command:

sudo mysql_secure_installation

This script will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB as shown below:

Set root password? [Y/n] y
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

6. Create a database for OctoberCMS with the following command:

sudo mysql -u root -p
create database ocmsdb character set utf8;
GRANT ALL PRIVILEGES ON ocmsdb.* TO 'user'@'localhost' IDENTIFIED BY 'password';
flush privileges;

7. Installing OctoberCMS

cd /opt
sudo wget -O
sudo unzip -d /var/www/html/octobercms
sudo chown -R www-data:www-data /var/www/html/octobercms/
sudo chmod -R 755 /var/www/html/
sudo nano /etc/apache2/sites-available/octobercms.conf

DocumentRoot /var/www/html/octobercms/

Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog /var/log/apache2/octobercms-error_log
CustomLog /var/log/apache2/octobercms-access_log common

Save and close.

8.  Enable virtual host directive with the following command:

sudo a2ensite octobercms

9.  Enable Apache rewrite module and restart apache web server service with the following command:

sudo a2enmod rewrite
sudo systemctl restart apache2

10. Access OctoberCMS using the in the web browser and follow the on screen instruction for complete the setup.

For step by step installation instruction, watch this video



Post a Comment

Comments with links will not be published.

Video Tutorials