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

Google Analytics Introduction and Capabilities — XenonStack

What Is the ICP License in China and How To Get One

Building a Multi-Cloud Strategy

Pub/sub with PyZMQ: Part 2

toaster analogy

Quick Guide: iOS Internationalization (i18n) and Localization (l10n)

How to use Github Desktop with Gitlab

Reading and Writing to CSVs in Python

Conway’s Law — A Theoretical Basis for the Microservice Architecture

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

Introduction to CI pipelines on Github

Two people looking at code on a Silver Macbook Pro https://www.pexels.com/@divinetechygirl?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels

Using Containers For Your NetSuite Dev Workflow

How to install Microsoft SQL Server on a Macbook

Setup python development environment with VSCode.