ImpressPages is an open source and free CMS. (Model View Controller) Based on ** MVC ** architecture.
Alibaba Cloud Tech Share Written by Arslan Ud Din Shafiq.
ImpressPages is an open source and free content management system (CMS). It is based on the (Model-View-Controller) MVC architecture. ImpressPages is a lightweight, effective and simple CMS that supports multiple languages by default. You can create an interface just by dragging and dropping.
Follow the steps below to install ImpressPages 5.0.
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.2d9b7128i4cdHj&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.2d9b7128i4cdHj). This tutorial uses Alibaba Cloud ECS and CentOS 7.
Set the host name of the server.
Options: Set security groups and enable firewalls to keep your server secure. Some Alibaba Cloud security products are provided free of charge, such as Server Guard (https://www.alibabacloud.com/product/server-guard?spm=a2c65.11461447.0.0.2d9b7128i4cdHj) and Anti-DoS Basic (https://www.alibabacloud.com/product/anti-ddos?spm=a2c65.11461447.0.0.2d9b7128i4cdHj).
# useradd aareez
Here, "aareez" can be replaced with any username.
# passwd aareez
# visudo
# usermod -aG wheel aareez
After executing the above command, you can check the affiliation of the group by executing the following command.
# groups aareez
# su - aareez
You can see that you are currently logged in from your new account. If you want to check this, you can check it with the following command.
# whoami
# sudo yum -y update
This completes the CentOS update. The next step is to install Apache Web Server.
# sudo yum install nano
# sudo yum install epel-release
# sudo yum -y install httpd
You will be prompted to enter the password. Enter your password now and press Enter to wait for the update.
# sudo systemctl enable httpd
# sudo systemctl start httpd
# sudo nano /etc/httpd/conf/httpd.conf
Note: The DocumentRoot settings are as follows.
# DocumentRoot "/var/www/html”
# 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 and uncomment it.
16, Now, in order for mod_rewrite to work properly with ImpressPages CMS, you need to edit the Apache settings. To open the file for editing, use the following command.
# sudo nano /etc/httpd/conf/httpd.conf
17, 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>
18, Press Ctrl + X to save your changes, press Y, then press Enter. Your changes are now saved.
# sudo systemctl restart httpd
If you have a firewall enabled, you need to define a rule in the Alibaba Cloud security group on your cloud server and add an exception for ports 80/tcp, 443/tcp. These ports can be enabled when you create an ECS instance. If you forget to unblock these ports, follow these steps: By default, these ports are blocked by a firewall.
To do this, follow the instructions given in the snapshot.
20, Go to the Elastic Compute Service section. Click the More button on the ECS you used for your ImpressPages CMS.
22, Click Quick Create Rule.
23, Add settings as shown in the screenshot below and click OK.
SELinux should be disabled to avoid permissions-related issues with ImpressPages CMS. To do this, first check if SELinux is enabled or disabled.
# 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
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:
26, 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
# 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.
# sudo yum -y install mariadb-server
Alibaba Cloud Aspara DB for RDS is the best alternative. We recommend using this.
# sudo systemctl enable mariadb
# sudo systemctl start mariadb
30, Now, run the command to ensure the security of the MariaDB server.
# sudo mysql_secure_installation
The root password is blank by default, but press the Enter button to proceed and select "Y" to select the password.
# sudo mysql -u root -p
33, ImpressPages To create a database for the CMS and a user for this database, use the following query.
CREATE DATABASE im_db CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'im_db'@'localhost' IDENTIFIED BY 'SecurePassword';
GRANT ALL PRIVILEGES ON im_db.* TO 'im_db'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Here you can rename im_db to any name you like.
34, You need the unzip tool to unzip any zip folder. To do this, use the following command.
# sudo yum -y install unzip
35, then type y and press Enter.
36, 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
37, Now use the following command to get the ImpressPages CMS package for installation.
# sudo wget http://download.impresspages.org/ImpressPages_5_0_3.zip
If you get an error with the above command, or if you need to install the latest version, click here (https://www.impresspages.org/download?spm=a2c65.11461447.0.0.2d9b7128i4cdHj) to get the latest version link.
# ls -la
39, Unzip the compressed zip folder now. To do this, use the following command.
# sudo unzip ImpressPages_5_0_3.zip
40, now use the command to move the installed directory to/var/www/html.
# sudo mv ImpressPages/* ImpressPages/.htaccess /var/www/html
# sudo chown -R apache:apache * .htaccess
# sudo systemctl restart httpd
Congratulations. You can now access your ImpressPages CMS via your IP address.
43, To access the ImpressPages CMS, use the ECS IP address instead of 47.254.66.175, enter the following address in your browser's address box and press enter.
http://47.254.66.175/index.php
44, you will be redirected to the website settings page, enter your website name, admin email address and time zone.
Web name | The name of your website |
---|---|
Administrator email address | Your email address |
Time zone | あなたのTime zone |
Press "Next".
45, This will open the system check page, press Next.
46, after this you will be redirected to the database settings page. Add the following values as used in the query above.
host | localhost |
---|---|
Database name | im_db |
username | im_db |
password | SecurePassword |
Then press the Next button.
47, this will automatically redirect you to the amine panel. If you are not redirected automatically, click the link below to add your ECS IP address.
http://47.254.66.175/admin.php
48, If you still can't access the admin screen, there may be a problem with your .htaccess file. To do this, open .htaccess in your editor with the following command:
# sudo nano .htaccess
You will be prompted for the user's password. Enter your password and press Enter.
49, try uncommenting the line below.
Options -Indexes
Options -MultiViews
Press Ctrl + X, press Y, and then press Enter.
50, restart the apache server
# sudo systemctl restart httpd
Thank you for waiting .... The tutorial is over. If you have any questions or problems, please write them in the comments. Thank you very much.
Recommended Posts