Quantcast
Channel: Tech Support
Viewing all articles
Browse latest Browse all 880

How to Install October CMS on Ubuntu 16.04 Server

$
0
0

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.

In this article, we will show you how to install October CMS on an Ubuntu 16.04 server with Apache as the web server and MariaDB as database.


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;
quit


7. Installing OctoberCMS

cd /opt
sudo wget http://octobercms.com/download -O octobercms.zip
sudo unzip octobercms.zip -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


ServerAdmin info@techsupportpk.com
DocumentRoot /var/www/html/octobercms/
ServerName labserver.techsupportpk.com

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 http://labserver.techsupportpk.com/install.php in the web browser and follow the on screen instruction for complete the setup.


For step by step installation instruction, watch this video



Viewing all articles
Browse latest Browse all 880

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>