1. Purchase the domain name and ECS server

2. Configure the environment

2.1 Official tutorial location

Here is according to the official website of the tutorial, the entrance as shown below:

The official website tutorial will not copy down, see the official website on the line. This article only records the operations that need to be supplemented beyond the official website.

2.2 installation yum

Yum ==Debian== yum =Debian== Sudo apt-get update sudo apt-get install build-essential sudo apt-get install yum Error: There are no enabled repos

2.3 Installing Apache and extension Packages

Sudo apt-get install HTTPD httpd-manual mod_ssl mod_perl mod_auth_mysql on RHEL/CentOS/Fedora It’s called apache2 in Ubuntu. I want to cry, Baidu not shallow, a night do not know why. sudo apt-get install apache2

2.4 Set up a MySQL database on the ECS server by referring to the following operations

2.4.1 Run the following command to download and install MySQL

wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm sudo apt-get install mysql57-community-release-el7-10.noarch.rpm sudo apt-get install mysql-community-server ==Debian== sudo apt-get install Mysql-server mysql-client = mysql-server = mysql-client What a tired heart. How do I completely remove mysql-server on Debian? Apt-get remove –purge ‘mysql-.*’ or apt-get remove –purge ‘mysql-server.*’ It’s perfectly fine to follow this article. How to Install MySQL on Debian 10

2.4.2 Run the following command to check the initial password of MySQL

Su root vim /etc/mysql.debian. CNF For details, see How do I Obtain the Login Password after installing mysql on Linux (Debian)

2.4.3 Run the following command to log in to the database

Mysql -u root -p

2.4.4 Run the following command to change the default password of MySQL.

use mysql; Update user set password=password(‘ I am a password ‘) where user=’root’; ⚠️ Note: The new password must contain three types of characters including uppercase and lowercase letters, digits, and special characters. For details, see Changing the mysql Login Password in Debian

2.4.5 Run the following command to create a database

create database pbootcms;

2.4.6 Entering exit to exit the database

exit

2.5 PbootCMS is a CMS system developed using PHP language. Refer to the following steps to install the PHP environment.

2.5.1 Run the following command to install PHP

==PHP installation has some problems, here may be based on their own operating system and version of the choice == read this article, ok, but there are some problems with typography, I will use the extract. Install PHP7.3 in Ubuntu/Debian == Apt-y install software-properties-common apt-transport-https lsb-release ca-certificates add GPG: Wget – O/etc/apt/trusted GPG. D/PHP. GPG add sury software source: https://mirror.xtom.com.hk/sury/php/apt.gpg sh -c ‘echo “deb https://mirror.xtom.com.hk/sury/php/ $(lsb_release -sc) main” > /etc/apt/sources.list.d/php.list’ Install PHP7.4: Apt-get install php7.4- FPM php7.4-mysql php7.4-curl php7.4-gd php7.4-mbstring php7.4- XML php7.4- XMLRPC php7.4-zip Php7.4 opcache — y

3. Build a website

After deploying the environment, do the following to set up the website (here we change the website to Debian==).

3.1 On the ECS server, run the following command to install Git

Git git git git git git git git git git git git

3.2 Run the following command to download the PbootCMS source file

cd ~ && git clone https://gitee.com/hnaoyun/PbootCMS.git

3.3 Run the following command to copy the installation package to the Apache wwwroot directory

cp -r PbootCMS/* /var/www/html/

3.4 Run the following command to change the permission of the root directory file

chmod -R a+w /var/www/html

3.5 Run the following command to import the CMS initial data to the MySQL database

⚠️ Note: Before running the command, replace ==NewPassWord1.== with the database password you have set. Note here to replace the database password set by yourself. The blank space after the password is the database name created in 2.4.5. sql_file=”/var/www/html/static/backup/sql/”$(ls /var/www/html/static/backup/sql/) && mysql -uroot -pNewPassWord1. pbootcms < $sql_file

3.6 Run the following command to modify the CMS database configuration

⚠️ Note: Before executing this command, replace your database configuration according to the parameter description. By default, you only need to change the database password.

cat> /var/www/html/config/database.php << EOF <? phpreturn array(
    'database' => array(
        'type'= >'mysqli'// Database connection driver type: mysqli, sqLite,pdo_mysql,pdo_sqlite'host'= >'127.0.0.1'// Database server'user'= >'root'// Database connection user name'passwd'= >'NewPassWord1.'// Database connection password'port'= >'3306'// Database port'dbname'= >'pbootcms'// database name)); EOFCopy the code

3.7 Returning to the ECS Console. On the ECS instance list page, click the created ECS instance ID link to go to the ECS details page. In the navigation tree, click This example Security Group and click the SECURITY group ID link to view the security group configuration

3.8 Apache2 port number and add it in the preceding figure

vim /etc/apache2/ports.conf

3.9 start the apache2

sudo systemctl status apache2

3.10 Enter the public IP address of the cloud server in the address box of a browser to access the CMS home page

The default access path is http://<ECS public IP address >/admin.php. The default user name and password are admin and 123456 respectively. Just look at this page

So far the website has been built and you can customize the content of the website according to your own needs.