How to Install and Configure October CMS on Alibaba Cloud ECS

Prerequisites

  • A server running on either Ubuntu 18.04 or Debian 9
  • A non root user with Sudo Privileges

Step 1: Set Up Servers

Step 2: Installing PHP and its required PHP Modules

sudo apt install -y php php-cli php-mysql php-zip php-json php-gd php-mbstring php-curl php-xml php-pear php-bcmath php-pdo openssl

Step 3: Installing MySQL Database Server

sudo apt-get install mysql-server php7.0-mysql
/usr/bin/mysql_secure_installation
Would you like to setup VALIDATE password plugin? [Y/N] N
Change the root password? [ Y/N ] N
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

Step 4: Create MySQL Database for October CMS

$ mysql -u root -p
CREATE USER 'october'@'localhost' IDENTIFIED BY 'StrongPassword';
CREATE DATABASE october;
GRANT ALL ON october.* TO 'october'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
QUIT
mysql  -u OctoberCMS -p
SHOW DATABASES;
QUIT

Step 5: Install Apache 2 Server

sudo apt -y install apache2 libapache2-mod-php unzip vim

Step 6: Configure Apache and Install October CMS

wget http://octobercms.com/download -O octobercms.zip
unzip octobercms.zip
sudo mv install-master /srv/octobercms
sudo chown -R www-data:www-data /srv/octobercms
sudo vim /etc/apache2/sites-enabled/octobercms.conf
<VirtualHost *:80>
DocumentRoot /srv/octobercms/
ServerName yourwebsite.com
ServerAlias www.yourwebsite.com
ServerAdmin admin@yourwebsite.com

<Directory /srv/octobercms/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/octobercms-error.log
CustomLog /var/log/apache2/octobercms-access.log combined
</VirtualHost>
sudo a2enmod rewrite
sudo systemctl restart apache2

Step 7: Setup October CMS via Web Interface

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Elastic Event-Driven Applications

What you need to know before trying to position your divs

Are user stories necessary?

Entrepreneurs: how to make your own WeChat Mini-Program

How the Cloud Transformed a Traditional Post Officer for Digital Success

Building an 8-bit computer in Logisim (Part 4 — Status Flags)

Low-code vs Pro-code, On-Premises vs Cloud: Business application development landscape

Monkeys and Doors — Puzzle for Interview rounds

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Custom Python/Shell Script for pre-commit

Build Nginx-HTML Docker Image using Dockerfile

Build Nginx-HTML Docker Image using Dockerfile

Docker in simple words

How to create a Docker image using Docker File and push it on Docker Hub.