• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Friday, May 9, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

How to Install the October CMS on CentOS 7

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
25
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: Update the system
  3. Step 2: Install Apache
  4. Step 3: Install PHP and necessary extensions
  5. Step 4: Install MariaDB and create a database for October
  6. Step 5: Install the October CMS
  7. After the installation
  8. Want to contribute?


October is an open source content management system which is based on the Laravel PHP Framework. With an elegant interface and a concise modular architecture, October takes the user experience on CMS to the next level.

This article will guide you through the process of installing the October CMS on a Vultr CentOS 7 server instance.

Prerequisites

  • A newly deployed Vultr CentOS 7 server instance.
  • A sudo user. You can learn more about a sudo user in this Vultr article.

Step 1: Update the system

Log in as a sudo user from your SSH terminal, and then update the system to the latest stable status:

sudo yum install epel-release -y
sudo yum update -y && sudo shutdown -r now

After the reboot, use the same sudo user to log in again.

Step 2: Install Apache

Install Apache using YUM:

sudo yum install httpd

On a production machine, you will want to remove Apache’s default welcome page:

sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf

For security purposes, you need to prevent Apache from displaying files in the “/var/www/html” directory:

sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf

Start Apache:

sudo systemctl start httpd.service
sudo systemctl enable httpd.service

Step 3: Install PHP and necessary extensions

October requires PHP version 5.5.9 or greater. Here, you can install PHP 5.6 and necessary extensions using the IUS YUM repository.

Install the IUS YUM repo:

cd
wget https://centos7.iuscommunity.org/ius-release.rpm
sudo rpm -Uvh ius-release.rpm

Install PHP 5.6 and necessary extensions using the IUS YUM repo:

sudo yum install php56u.x86_64 php56u-pdo.x86_64 php56u-common.x86_64 php56u-mbstring.x86_64 php56u-gd.x86_64 php56u-mysqlnd.x86_64

After the installation, restart Apache to load new modules:

sudo systemctl restart httpd.service

Step 4: Install MariaDB and create a database for October

Install MariaDB using YUM:

sudo yum install mariadb mariadb-server

Start MariaDB:

sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

Secure the installation of MariaDB:

sudo /usr/bin/mysql_secure_installation

Go through the process in accordance with the following instructions:

Enter current password for root (enter for none): Enter
Set root password? [Y/n]: Y
New password: <your-password>
Re-enter new password: <your-password>
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

In order to create a database for October, you need to log into the MySQL shell:

mysql -u root -p

Input the MariaDB root password you set earlier to log in.

In the MySQL shell, use the following commands to create a database and grant privileges to a database user. Be sure to replace the database name “octobercms”, the database username “octoberuser”, and the database user password “yourpassword” in each and every command with your own ones.

CREATE DATABASE octobercms;
CREATE USER 'octoberuser'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON octobercms.* TO 'octoberuser'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

Step 5: Install the October CMS

Download and prepare October installation files:

cd
wget http://octobercms.com/download -O octobercms.zip
sudo yum install unzip
unzip octobercms.zip
sudo mv install-master/* /var/www/html
sudo chown apache:apache -R /var/www/html

Modify firewall rules in order to allow web access:

sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --reload

Now, point your web browser to the following URL:

http://<your-server-ip>/install.php

1) First of all, the October installation wizard will perform a system check. If everything goes well, click the “Agree & Continue” button to go to the next step.

2) In the step of Database, input the MySQL database name, MySQL username, and MySQL password you setup earlier, leave other fields untouched, and then click the “Administrator >” button to move on.

3) In the step of Administrator, input the username and the password for the administrator, then click the “Advanced >” button to continue.

4) In the step of Advanced, you need to take some measures to enhance security:

  • Specify the backend URL: a hard to guess URL, like /rfgtgkef.
  • Provide an encryption code: a 32-bit alphanumeric string, like uhgXsJhk7LYYu4mjZbybwHY95G2wjsfR.
  • setup permission masks for folders and files during installation and updates: For now, both of them can use the default value 777.

Click the “Continue” button to go to the last step.

5) In the step of Getting started, you need to choose how to setup your site. For a beginner, it is recommended to choose “Start from a theme”, and then install a theme as you wish.

Congratulations! Now you can visit your October site using the following URL:

http://<your-server-ip>

And the URL of October administration area is:

http://<your-server-ip>/rfgtgkef

After the installation

1) For security purposes, you should delete all of the installation files after the installation:

sudo rm -rf /var/www/html/install.php /var/www/html/install_files

2) If the URL of October administration area takes you to a 404 page, you need to modify the configuration of Apache:

sudo vi /etc/httpd/conf/httpd.conf

Find the following segment:

<Directory "/var/www/html">

In this segment, modify the line:

AllowOverride None

To:

AllowOverride All

Save and quit:

:wq!

Restart Apache to put your changes into effect:

sudo systemctl restart httpd.service

3) In production environments, you may want to enable the CSRF protection:

sudo vi /var/www/html/config/cms.php

Find the line:

'enableCsrfProtection' => false,

Replace it with:

'enableCsrfProtection' => true,

Save and quit:

:wq!

Restart Apache:

sudo systemctl restart httpd.service

4) Disable the debug mode:

In production environments, it’s important to disable the debug mode:

sudo vi /var/www/html/config/app.php

Find the line:

'debug' => true,

Replace it with:

'debug' => false,

Save and quit:

:wq!

Restart Apache:

sudo systemctl restart httpd.service

5) Setup the scheduler

Use the crontab command to setup the scheduler:

sudo crontab -e

Input the following entry:

* * * * * php /var/www/html/artisan schedule:run >> /dev/null 2>&1

Save and quit:

:wq!

That’s it. Thank you for reading.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

Monitoring Your Server With Glances

Next Post

How to Install and Configure CyberPanel on Your CentOS 7 Server

Next Post

How to Install and Configure CyberPanel on Your CentOS 7 Server

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet