Install and configure October CMS on CentOS 8

You can download this article in PDF format via the link below to support us.

Download the guide in PDF format

turn off


If you are at a crossroads and are troubled by the decision to choose a content management system for your blog or site, which one would you choose? Have you heard of the CMS in October? If not, then you will learn more about its products in this guide.

October is completely built using Laravel as a foundation. It is a free, open source, self-hosted content management system (CMS) and web platform. The developers of October found it difficult to use the existing system, so October CMS was born with the sole purpose of making your development workflow easier again, as we will see in this guide.

October will help you create, manage and modify content on your website simply and easily. For those of us who have never heard of October CMS, the short introduction above is enough to get you into trouble. Since we are all reading on the same page, it is prudent to let us busy with CentOS 8 in October.

“We often miss good opportunities because it wears work clothes and looks like work.” -Thomas A. Edison

Before you start, please check the minimum system requirements of October CMS for us before setting up.

Minimum system requirements.

  • PHP version 7.0.8 or higher
  • PDO PHP extension
  • cURL PHP extension
  • OpenSSL PHP extension
  • Mbstring PHP library
  • Apache using mod_rewrite or Nginx
  • ZipArchive PHP library
  • GD PHP library

We will meet these requirements by October. Now we start.

Step 1: Prepare the server

Jump to the terminal of the new CentOS 8 server, update it and install the basic tools that will be used during the installation process.

                        sudo dnf update
sudo dnf -y install git unzip vim nginx

Disable SELinux

If you can handle SELinux easily, this is optional. To disable it, run the following command and restart the server.

                        sudo sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
sudo setenforce 0

Step 2: Install PHP on CentOS 8

By installing it in the server, let us meet the above PHP requirements. Please follow how to install PHP on CentOS 8. The RHEL 8 guide can quickly get everything up and running.

After installing PHP 7 correctly, please add the following modules before October as shown below.

                        sudo yum install -y php-cli php-pdo php-common php-mysql php-curl php-json php-zip php-gd php-xml php-mbstring

Edit php-fpm File /etc/php-fpm.d/www.conf and set user with group to Nginx . They are usually set to Apache default.

                        $ sudo vim /etc/php-fpm.d/www.conf

user = nginx
group = nginx

After making these changes, restart php-fpm

                        sudo systemctl restart php-fpm

Step 3: Install and set up the database

We will use MariaDB for this setup. Fortunately, we already have a detailed guide to install MariaDB 10.5 on Centos 8. Please see Installing MariaDB 10 on CentOS 8.

After installing the database, the next step is to create the database and users for October CMS. So let’s proceed with this operation as shown below. You can use different names to name the database and users at will, and make sure to use secure passwords.

                        $ mysql -u root -p

MariaDB [(none)]> CREATE DATABASE octoberdb;
MariaDB [(none)]> GRANT ALL ON octoberdb.* TO 'octoberadmin' IDENTIFIED BY 'SafePassword';
MariaDB [(none)]> quit

Step 4: Install October CMS on CentOS 8

October can be installed via the command line or the wizard provided. Due to its simplicity, we will use the wizard/installer approach in this guide. let’s continue.

Create a directory and put the October files in it. This will also help us set up the root directory where the web server will look for service files.

                        sudo mkdir /var/www/html-cms && cd /var/www/html-cms

Download the October installer file and unzip it.

                        sudo wget -O
sudo unzip
sudo mv install-master/* .

The above command will unzip the files and place them in the root directory we want, which is /var/www/html-cms.

Step 5: Configure the network server (Nginx)

Open the Nginx configuration file and edit the server block as shown below. Make sure to place the correct server_name and root directory according to your environment.

                        $ sudo vim /etc/nginx/nginx.conf

    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  _;
        root         /var/www/html-cms/;

        index index.php index.html;
        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
                try_files $uri /index.php$is_args$args;
        location ~ .php$ {
           fastcgi_pass unix:/run/php-fpm/www.sock;
           fastcgi_index index.php;
           fastcgi_read_timeout 240;
           fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
           include fastcgi_params;
               fastcgi_split_path_info ^(.+.php)(/.+)$;

            rewrite ^themes/.*/(layouts|pages|partials)/.*.htm /index.php break;
            rewrite ^bootstrap/.* /index.php break;
            rewrite ^config/.* /index.php break;
            rewrite ^vendor/.* /index.php break;
            rewrite ^storage/cms/.* /index.php break;
            rewrite ^storage/logs/.* /index.php break;
            rewrite ^storage/framework/.* /index.php break;
            rewrite ^storage/temp/protected/.* /index.php break;
            rewrite ^storage/app/uploads/protected/.* /index.php break;

Modify the permissions on the root directory and restart the web server

                        sudo chown -R nginx:nginx /var/www/html-cms
sudo systemctl restart nginx php-fpm

Modify the firewall rules to allow port 80 or 443 as needed:

                        sudo firewall-cmd --permanent --add-port={80,443}/tcp
sudo firewall-cmd --reload

Step 6: Set up October CMS

Navigation http: //[ip-address-or-domain-name]/install.php And follow the screenshot below to complete the installation.

On the first page

A system check will be performed on the first page to ensure that all requirements have been met before starting the installation. If everything is ok on this page, scroll down and click “ Agree and continue

Database details

The second page will show you a form requesting the database details that we configured in step 4. Fill in the details accordingly and click “ administrator “Label.


On the third page, you will specify the details of logging in to the management area. Click “ carry on “carry out

getting Started

If all goes well, we should now be ready to start a project on this page. You can start from scratch, start with the subject, or use a pre-existing ID. The theme can install plugins and create the pages needed to start the website. We can start with a theme to make our work easier.

Choose the theme that catches your attention and install it.

This caught my attention.

Give it time to install.

After the installation is complete, it’s time to start working. Click “ Administrative regions” Link to so that we can edit the backend of the new site/blog.

Enter the username and password you configured

After entering, click “ CMS” The label begins to modify your project.

On the left pane, click any tab to modify its corresponding content. An example is shown below.

You will notice that even if you can modify the theme directly, you can also use the code editor in it so that you can add custom lines of code and edit the content already given. October CMS is awesome. And, before you make a request, you can also preview the changes you have made by clicking the upper right icon shown in the screenshot below.

The preview sample is shown below.

Step 7: Work after installation

After the installation is complete, the October team will suggest something to do, especially if you plan to use it for production.

Delete installation files

Navigate to the directory where the installation files are placed and delete them for security reasons. These files are:

install_files / <==installation directory install.php <==installation script

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

Set up the scheduler

In order for the scheduled task to run normally, the following Cron entry should be added to the server. Usually, use the command crontab -e to perform crontab editing.

                        $ sudo crontab -e

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

The cron will call the command scheduler every minute. Then, in October, all scheduled tasks are evaluated and tasks that are due are run.

Disable debug mode in production

Although most configurations are optional, the developers in October strongly recommend disabling debug mode for production environments. When enabled, this setting will display detailed error messages when other error functions occur. To disable debug mode, open the file and set debug from true to false:

                        $ sudo vim /var/www/html-cms/config/app.php

    'debug' => false,

After making all changes, restart nginx

In order for the web server to choose new changes, please restart it as if

                        sudo systemctl restart nginx

More information about October CMS Visit their official website And check their document For other configuration details.

Online Course:

Complete 2020 Web Development Bootcamp

Complete 2020 Web Development Bootcamp


$ 16.25

$ 174.11

In stock

Buy now

Web Developer Bootcamp

Web Developer Bootcamp


$ 17.41

$ 185.72

In stock

Buy now

Complete Web Developer Course 2.0

Complete Web Developer Course 2.0


$ 13.93

$ 156.70

In stock

Buy now

in conclusion

October CMS provides an easy-to-use platform, anyone can use it without having to consult documents frequently. It allows you to easily set up your website from scratch, or you can use pre-developed themes to speed up your project. Try it out, check out helps your development workflow or project. We hope it will be fun and bring fresh air into your tool set.

People also read:

Install and configure Drupal 9 CMS on CentOS 8

How to install Drupal 9 CMS on Ubuntu

Install and configure Ghost CMS on CentOS 8 / RHEL 8

Install and configure Drupal 9 on CentOS 7

Install October CMS on Ubuntu

You can download this article in PDF format via the link below to support us.

Download the guide in PDF format

turn off


Related Posts