Install CMS Made Simple v2.2.2 on LAMP on CentOS 7.3

To create attractive UIs with ** AMP **, you need to understand the basics of the ** AMP ** framework. In this tutorial, you will configure CMS Made Simple.

Alibaba Cloud Tech Share Written by Arslan Ud Din Shafiq.

CMS Made Simple is an open source and free content management system (CMS). It's user-friendly, extensible, well-designed and packed with powerful add-ons and plugins for easy integration.

With CMS Made Simple, you can use the add-and-drop function to arrange and rearrange pages. CMS Made Simple is one of the best choices for developers, designers and end users alike. If you are an end user or editor, you don't have to worry about the appearance, you can easily edit and update the content of the website, and edit the content with the simple editor provided by CMS Made Simple. I can.

CMS Made Simple does not limit the use of off-the-shelf or premium templates and does not require extra money. With a little knowledge of HTML and CSS, developers can simply use the Design Manager to create layouts and other designs. If you already have some design, don't worry, you can put it in the CMS Made Simple as well.

As a developer, I would like to use Alibaba Cloud services to host CMS Made Simple. Alibaba Cloud Elastic Compute (https://www.alibabacloud.com/product/ecs?spm=a2c65.11461447.0.0.3f9a1154gXDurT) (ECS) is flexible and allows you to upgrade your hardware resources whenever traffic increases.

CMS Made Simple does not restrict installation on any particular operating system (OS). You can use your favorite OS, but the installation procedure depends on your OS selection.

This tutorial uses Alibaba Cloud Elastic Compute Service (ECS) with CentOS 7.2 (https://www.alibabacloud.com/blog/how-to-set-up-cms-made-simple-v2-2-lamp-in-centos-7-3_594684?spm=a2c65.11461447.0.0.3f9a1154gXDurT) installed.

Prerequisites

  1. You need to have Alibaba Cloud Elastic Compute Service (ECS). If you are new to us, please click here (https://account-intl.aliyun.com/register/intl_register.htm?spm=a2c65.11461447.0.0.3f9a1154gXDurT&biz_params=%7B%22intl%22%3A%22%7B%5C%22referralCode%5C%22%3A%5C%22ffxt3q%5C%22%7D%22%7D) and try Alibaba Cloud's Free Trial (https://www.alibabacloud.com/campaign/free-trial?spm=a2c65.11461447.0.0.3f9a1154gXDurT). This tutorial uses Alibaba Cloud ECS and CentOS 7. If you don't know how to set up an ECS instance, please refer to this tutorial (https://www.alibabacloud.com/blog/3-ways-to-set-up-a-linux-server-on-alibaba-cloud_572384?spm=a2c65.11461447.0.0.3f9a1154gXDurT).

  2. Set the host name of the server.

  3. You need to access Alibaba Cloud's VNC console or have an SSH client installed on your PC.

Connect to your instance

  1. Once the prerequisites are complete, the root user via an SSH client (eg Putty-Putty is available from https://www.putty.org) or the VNC console available on the Alibaba Cloud account dashboard. Log in as.

Add a user with root privileges

  1. To add a new user with root/admin privileges, use the following command.

# useradd aareez

Note: "aareez" can be any username you like.

  1. Set a strong password for the selected user name. In my case, the username was "aareez". When you type the following command and press Enter, you will be prompted to enter a new password.

# passwd aareez

  1. Enter your password and press Enter. Retype the password and press Enter.

4, this time add the username to the sudo user group to give root/admin privileges. To do this, check the/etc/sudoers file to see if the sudoers group is enabled. To do this, run the following command:

# visudo

  1. When you execute the above command, the following line will be displayed in the opened file.

  2. Execute the following command to add the user name "aareez" to the "wheel" group.

# usermod -aG wheel aareez

After executing the above command, you can check the affiliation of the group by executing the following command.

# groups aareez

In the screenshot above, you can see that the username "areeez" is part of "wheel".

  1. You can log in with the recently created account or switch from the root user to your username with the following command.

# su - aareez

To see which account you logged in from, type the following command and press Enter.

# whoami

image.png

CentOS 7.2 system update

Run the following command to update CentOS before proceeding with the package installation.

Note: Remember to log in with sudo privileges from a non-root user to run this command.

# sudo yum -y update

Now you will be prompted to enter your password to confirm. Enter your password, press Enter, and wait until the screen says "Complete!".

This completes the CentOS update. Next is the installation of Apache Web Server. Before installing Apache Web Server, you need to install the nano editor and epel-release.

image.png

Installing Nano Editor

  1. To install Nano Editor, execute the following command.

# sudo yum install nano

  1. You will be prompted to enter your password. Enter your password and press Enter.

  2. Type y and press Enter to continue the installation.

4, Nano editor was installed successfully.

image.png

Install epel-release

  1. To install epel-release, execute the following command.

# sudo yum install epel-release

  1. Type y and press Enter to continue the installation.

3, Epel-release was installed successfully.

image.png

Apache web server installation

  1. To install apache web-server, you need to execute the following command.

# sudo yum -y install httpd

You may be prompted to enter your password. Enter your password here and press Enter to wait for the update.

  1. Apache Web Server has been successfully installed.

image.png

3, Now the apache server will run automatically when you start ECS. To do this, run the following command.

# sudo systemctl enable httpd

  1. Execute the following command. You may be prompted to re-enter your password.

# sudo systemctl start httpd

  1. To make sure that the DocumentRoot directive points to the correct directory, check the Apache configuration file with the following command.

# sudo nano /etc/httpd/conf/httpd.conf

Note: The DocumentRoot settings should look like this: You can search the text of an open file by typing the following line with Ctrl + W.

# DocumentRoot "/var/www/html”

image.png

  1. Press Ctrl + X to close the opened file.

  2. Run the following command to open 00-base.conf and search for mod_rewrite to see if this module is loaded correctly.

# sudo nano /etc/httpd/conf.modules.d/00-base.conf

If the mod_rewrite module is already loaded, you will see a line similar to the following:

LoadModule rewrite_module modules/mod_rewrite.so

Semicolons are used to comment on lines in any Apache module. If the above line begins with a semicolon (;), remove the semicolon, uncomment it, press Ctrl + X, then'Y', and then press Enter.

  1. Now, in order for mod_rewrite to work properly with CMS Made Simple, you need to edit the Apache settings. To open the file for editing, use the following command.

# sudo nano /etc/httpd/conf/httpd.conf

  1. Find the section <Directory "/ var/www/html"> and change the value of AllOverride as follows:
From To
AllowOverride none AllowOverride All

The modified section looks like this:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

image.png

  1. Press Ctrl + X to save your changes, press Y, and then press Enter. Your changes are now saved.

  2. You need to restart apache for the changes to work properly. To do this, run the following command.

# sudo systemctl restart httpd

Set up firewalls for HTTP and HTTPS

If you have a firewall enabled, you must define a rule in the Alibaba Cloud security group on your cloud server to add exceptions for ports 80/tcp and 443/tcp. You can enable these ports when you create an ECS instance, but if you forget to unblock these ports, follow the steps below. By default, these ports are blocked by a firewall.

To do this, follow the steps given in the snapshot.

  1. Go to the Elastic Compute Service section. Click the More button on the ECS you are using with CMS Made Simple.

image.png

  1. Click Set Rule.

  2. Click Quick Create Rule.

  3. Add the settings as shown in the screenshot below and click OK.

image.png

Disable SELinux (Security Enhanced Linux)

SELinux should be disabled to avoid permission-related issues with CMS Made Simple. To do this, first check if SELinux is enabled or disabled. Use the following command to check.

# sudo sestatus

It is disabled by default on Alibaba Cloud ECS. However, if you have previously made changes to ECS, follow this step. If the status is disabled, skip this step. Otherwise, use the following command to open the file.

# sudo nano /etc/selinux/config

Modify the open file as follows and save the modified file.

From To
SELINUX=enforcing SELINUX=disabled

Press Ctrl + X, press Y, press Enter to save your changes, and close the open file.

After disabling SELinux, you need to restart ECS. To restart ECS, follow these steps:

Install PHP 7.1

  1. To install PHP 7.1 on CentOS, you need to add an external repository. To do this, run the following command.

# sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

  1. After adding the repository, install PHP 7.1 with the required modules in CMS Made Simple. Execute the following command.

# sudo yum -y install php71w php71w-gd php71w-mbstring php71w-mysql php71w-xml php71w-common php71w-pdo

If the PHP module is installed successfully, the following screen will be displayed.

image.png

MariaDB (MySQL) server installation

  1. CentOS uses MariaDB server by default instead of MySQL server. To install MariaDB, use the following command.

# sudo yum -y install mariadb-server

Alibaba Cloud AsparaDB for RDS is the best alternative and highly recommended. Alibaba Cloud AsparaDB for RDS frees you from database management and allows you to focus on your business. It is a service that can be used immediately. It provides protection from SQL injection, network attacks, brute force attacks, and many other types of database attacks. It's highly extensible, available, easy to use and safe.

MariaDB Server has been successfully installed.

image.png

  1. This will ensure that the MariaDB server starts automatically when the system reboots. To do this, use the following command.

# sudo systemctl enable mariadb

# sudo systemctl start mariadb

3, Now, execute the command to ensure the security of MariaDB server.

# sudo mysql_secure_installation

The root password is blank by default, so press the Enter button to proceed and select'Y'to select the password.

Creating a database

  1. Log in as the root user using the MariaDB shell and execute the following command.

# sudo mysql -u root -p

  1. The Now command prompt will prompt you to enter the password for the user "root". Enter the password and press Enter to display the MariaDB command prompt.

  2. To create a database for CMS Made Simple and a user for this database, use the following query.

CREATE DATABASE made_db CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'made_db'@'localhost' IDENTIFIED BY 'MadePassword';
GRANT ALL PRIVILEGES ON made_db.* TO 'made_db'@'localhost';
FLUSH PRIVILEGES;
EXIT;

You can rename made_db to any name you like.

Unzip installation

  1. To unzip any zip folder, you need the unzip tool. To do this, use the following command.

# sudo yum -y install unzip

  1. Then type'y'and press Enter.

3, Unzip was installed successfully.

image.png

Installation of CMS Made Simple v2.2

  1. Go to cd/var/www/html /.

Note: If you get an error like "No such directory or file", create an html directory. To do this, go to cd/var/www, run the following command to create an html directory, type cd html and press enter.

# sudo mkdir html

  1. Use the following command to get the CMS Made Simple package for installation.

# sudo wget http://s3.amazonaws.com/cmsms/downloads/14144/cmsms-2.2.7-install.zip

If you get an error with the above command, or if you need to install the latest version of CMS Made Simple, click here (https://www.cmsmadesimple.org/downloads/cmsms/?spm=a2c65.11461447.0.0.3f9a1154X4O8fp) to get the latest version of the link.

  1. To list the files in the current directory, use the following command.

# ls -la

image.png

4, unzip the compressed zip folder now. To do this, use the following command.

# sudo unzip cms-2.2.7.install.zip

5, change the owner of the file to avoid permission issues. Execute the following command.

# sudo chown -R apache:apache * ./

  1. After performing the above steps, restart Apache using the command.

# sudo systemctl restart httpd

Congratulations. Use your IP address to access the CMS Made Simple.

Installation of CMS Made Simple completed

  1. To access CMS Made Simple, use the IP address of ECS instead of 47.254.65.213, enter the following address in the address box of your browser, and press the enter key.

http://47.254.65.213/cmsms-2.2.7-install.php

  1. Click Install to proceed with the installation of CMS Made Simple.

image.png

  1. Click Next.

  2. After this, the screen will change to the database setting screen. Add the following values ​​as used in the query above.

Host localhost
Database Name made_db
Username made_db
Password MadePassword

image.png

  1. Set the administrator credentials for CMS Made Easy. These credentials are used to access the administration panel. Select your username, enter your email address, set a strong password, then press Next.

image.png

  1. If you want to set a language other than English, select the language from the list. Then proceed to the next.

  2. Click the next button to continue.

  3. Click the Next button to proceed.

9, CMS Made Simple has been successfully installed and ready to use.

image.png

  1. Use the link below to access the administration panel. Replace your IP address (47.254.65.213) with the ECS IP address.

http://47.254.65.213/admin/login.php

image.png

  1. That's it! Use the Alibaba Cloud ECS IP address to access the CMS Made Easy site. In my case, I used http://47.254.65.213 to access it.

Recommended Posts

Install CMS Made Simple v2.2.2 on LAMP on CentOS 7.3
Install OpenFOAM v2006 on CentOS
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Tomcat v8 on CentOS7
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install Python 3 on CentOS 7
Jetty v8 on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Install Ruby 2.7 on CentOS 7 (SCL)
Try DPDK20 SDK on CentOS7 ①Install
Install Ruby 2.5 on CentOS 7 using SCL
Install Java Open JDK 8 on CentOS 7
How to install MariaDB 10.4 on CentOS 8
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Install Java 9 on windows 10 and CentOS 7
Set up ImpressPages 5.0 with LAMP on CentOS 7.3
Install the webmail client Rainloop on CentOS 8
How to install beta php8.0 on CentOS8
Install CentOS 7 on Raspberry pi 4 Model B
Install NextCloud on CentOS 7 with Alibaba Cloud ECS
Command to install nginx / PHP7 / php-fpm on CentOS7
Install GitLab on CentOS 8 with no internet connection
Install MariaDB (CentOS 8)
[CentOS] Install apache-loggen
OpenVPN on CentOS 8
Install BookStack Documentation Wiki on Elastic Compute Service on CentOS 7
Install the latest hardware drivers from ELRepo on CentOS
Install MySQL 5.6 on CentOS6 [How to specify the version]
Install ag (the silver searcher) [on CentOS / Ubuntu / Mac]