How to install octoberCMS on centOS web panel
To install OctoberCMS on centOS web panel
OctoberCMS is a free and open source CMS (Content Management System) self-hosted CMS software based on Laravel PHP Framework. It is really so simple to install OctoberCMS on centOS web panel, and this article covers the method to isntall OctoberCMS on centOS web panel. Go to OctoberCMS official website in order to download the pacakge.
Installing OctoberCMS
Before you start the installation of October CMS, you need to log into your CWP server and create user account and also the domain that are required to install OctoberCMS. You can use the following crendentials for login purpose.
User Name : october
Domain Name : october.example.com
Once you are in, you need to create a user account. And for that choose User Account --> New account from the left panel.
Next, fill all the necessary details and click on the Create button.
And then, you need to create a domain now.
Enter the details for the domain and click on the Create button. Your new domain will be created.
Once it is done, you need to create a database and a database user for OctoberCMS Run the following commands to get into MySQL, and create and configure the database.
[root@cwp ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with or g. Your MariaDB connection id is 709 Server version: 10.1.29-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. MariaDB [(none)]> create database october_db Query OK, 1 row affected (0.07 sec) MariaDB [(none)]> CREATE USER ' october_user' @' localhost' IDENTIFIED BY ' 123' Query OK, 0 rows affected (0.03 sec) MariaDB [(none)]> GRANT ALL ON october_db.* TO ' october_user' @' localhost' Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit Bye
Once it is done, you shall download OctoberCMS package by making use of the following command.
[root@cwp ~]# wget http://octobercms.com/download -O octobercms.zip
--2017-11-29 17:02:58-- http://octobercms.com/download
Resolving octobercms.com (octobercms.com)... 104.24.113.12, 104.24.112.12, 2400:cb00:2048:1::6818:700c, ...
Connecting to octobercms.com (octobercms.com)|104.24.113.12|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/octobercms/install/archive/master.zip [following]
--2017-11-29 17:02:59-- https://github.com/octobercms/install/archive/master.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/octobercms/install/zip/master [following]
--2017-11-29 17:03:00-- https://codeload.github.com/octobercms/install/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ octobercms.zip’
[ < => ] 138,721 157KB/s in 0.9s
After downloading it, extract the package with the help of the following command.
[root@cwp ~]# unzip octobercms.zip
Archive: octobercms.zip
1421a543db250a7273eb9369c9e3a36d4155a4c1
creating: install-master/
extracting: install-master/.gitignore
inflating: install-master/README.md
inflating: install-master/install.php
creating: install-master/install_files/
creating: install-master/install_files/css/
inflating: install-master/install_files/css/animations.css
inflating: install-master/install_files/css/controls.css
inflating: install-master/install_files/css/fonts.css
creating: install-master/install_files/css/fonts/
.
.
.
inflating: install-master/install_files/partials/themes/theme.htm
inflating: install-master/install_files/partials/title.htm
creating: install-master/install_files/php/
inflating: install-master/install_files/php/Installer.php
inflating: install-master/install_files/php/InstallerException.php
inflating: install-master/install_files/php/InstallerRewrite.php
inflating: install-master/install_files/php/boot.php
Once the extraction is done, you need to copy all its contents to your domain' s default document root (/home/october/public_html). You shall make use of the following command for the same purpose.
[root@cwp ~]# cp -r install-master/* /home/october/public_html/
And then, change the ownership and file permissions by running the following commands.
[root@cwp ~]# chown -R october.october /home/october/public_html/
[root@cwp ~]# chmod -R 755 /home/october/public_html/
Later, you need to make an important configuraton. Create a .conf file for OctoberCMS to configure its Apache VirtualHost.
[root@cwp ~]# vim /usr/local/apache/conf/httpd.conf
Once the file is created, you shall make the following modifications in it.
< VirtualHost *:80>
Servername october.example.com
DocumentRoot /home/october/public_html
< /VirtualHost>
< Directory /home/october/public_html>
DirectoryIndex install.php
Options FollowSymLinks
AllowOverride All
Require all granted
suPHP_UserGroup october october
< /Directory>
Oncr it is done, you ought to restart your Apache service by making use of the following command.
[root@cwp ~]# systemctl restart httpd
And then, open your browser and call your Domain name. (example : october.example.com). The OctoberCMS site will appear on your screen.
In the setup, enter the database details and select the ' administrator' button to save the changes made in the database.
Create admin account with all the required credentials.
Select “ Start from a theme” to install octoberCMS site with a theme.
Choose any theme that you want to install to create the website with. For that select any type of theme and click install button.
The installation is in progress and it may take some time.
The website is successfully installed with a theme and OctoberCMS provides the user with two links to access their sites and also the administrator' s side.
With this, the installation of OctoberCMS on CentOS Web Panel comes to an end.
Comments ( 1 )