16 C
Texas
angeloma
Senior Writer and partner

How to install October CMS on Debian 9?

October is a CMS (Content Management System) that aims to make the work process as simple and basic as possible. Its development is in PHP using the Laravel framework and is built from scratch to ensure the correction of problems present in other CMS. So, in this post, I will show you how to install October on Debian 9.

Let’s start.

0. Prerequisites

The installation is quite simple and should not take many minutes, however, for everything to go well, it is necessary to take a few things into account.

  • First of all, to install October, you need to have access to the server using ssh.
  • Second, you need to run commands as root.
  • Finally, although the post will be very thorough, it is recommended that you have some prior knowledge in the use of the terminal.

With this in mind, you can start.

1. Upgrade the system

- Advertisement -

Before you start installing on your Debian server. So, it is recommended that you upgrade the system first.

:~$ su
:~# apt update && apt upgrade

1.- Upgrade the system
1.- Upgrade the system

Doing this ensures you have the latest security patches on your system.

2. Install Apache Web Server

The next step is to install a web server. For this tutorial, I will use the Apache web server which is very easy to manipulate and is also free.

:~# apt install apache2

2.- Install apache
2.- Install apache

Then, enable and start it.

:~# systemctl enable apache2
:~# systemctl start apache2

3.- Enabling Apache service
3.- Enabling Apache service

So, Apache web server is ready.

3. Install PHP

Now it’s PHP’s turn. To do this, run the following command.

:~# apt install php php-cli php-mysql php-zip php-json php-gd libapache2-mod-php php-mbstring php-curl php-xml php-pear php-bcmath php-pdo openssl

4.- Installing PHP on Debian 9
4.- Installing PHP on Debian 9

And that’s it.

4. Install MariaDB

October requires a database manager, for convenience and efficiency, I will use MariaDB.

:~# apt install mariadb-server

5.- Installing MariaDB
5.- Installing MariaDB

Once the installation has finished, it is necessary to define a root key. You can also configure other things using the mysql_secure_installation script.

First, enable and start the service.

:~# systemctl enable mariadb
:~# systemctl start mariadb

6.- Starting MariaDB
6.- Starting MariaDB

Now, run the script.

:~# mysql_secure_installation

7.- Using mysql_secure_installation script
7.- Using mysql_secure_installation script

After defining the password, you will be asked other questions regarding the configuration of MariaDB. You can answer as you like because it’s up to you, I answered like this: Y, N, Y, Y.

The next step is to create a database and a specific user for October.

:~# mysql -u root -p
CREATE DATABASE octoberdb;
GRANT ALL PRIVILEGES ON octoberdb.* TO 'octoberuser'@'localhost' IDENTIFIED BY 'octoberpss';
FLUSH PRIVILEGES;
exit;

8.- Creating the database for october
8.- Creating the database for October

5. Install October CMS

It’s finally time to install October. Download it first.

:~# wget http://octobercms.com/download -O octobercms.zip

9.- download October
9.- download and install October

Then, decompress it.

:~# unzip octobercms.zip

Next, move the folder to /var/www/html and change the owner and set the right permissions to the folder.

:~# mv install-master/ /var/www/html/october
:~# chown -R www-data:www-data /var/www/html/october/
:~# chmod -R 755 /var/www/html/october/

10.- Installing October CMS
10.- Installing October CMS

Finally, enable the rewrite module on Apache.

:~# a2enmod rewrite
:~# systemctl restart apache2

11.- Enabling the rewrite module on Apache
11.- Enabling the rewrite module on Apache

And now you can complete the installation from the web interface.

6.- Complete the installation from the web interface

The last step is to open the web browser and access this address http://IP_SERVER/october/install.php and complete the installation process.

The installer will check if anything is missed.

12.- All dependencies satisfied!
12.- All dependencies satisfied!

Scroll down and click on Continue button.

The next step is to configure the database parameters.

13.- Preparing the installation
13.- Preparing the installation

Next, configure the admin account.

14.- Setting the admin account
14.- Setting the admin account

If everything worked out correctly, clicking on Continue you will see the three options to start on your website.

15.- set up the site
15.- set up the site

I will start from a theme. You can choose one of the many beautiful themes.

16.- Choosing a theme
16.- Choosing a theme

And that’s it.

17.- Installation finished
17.- Installation finished

Conclusion

October CMS is an interesting alternative to giants like WordPress or Blogger that monopolize almost the entire market. However, here we find an easy and versatile solution for our needs.

Please share this article with your friends.

 

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article