How to Install Wonder CMS on Linux Mint 20
To Install Wonder CMS on Linux Mint 20
introduction:
WonderCMS is a free and open-source content management system that is one of the smallest flat file CMS for developing websites. Through this, we can add and change content by using the in-page editing function. In this tutorial, we will see the installation of Wonder CMS on Linuxmint 20. Installation Procedure: Check the version of the OS
root@linuxhelp:~# cat /etc/os-release
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com
Install the Typesetter CMS. Then install LAMP server. Finally install the Apache server
root@linuxhelp:~# apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
0 upgraded, 8 newly installed, 0 to remove and 363 not upgraded.
Need to get 1,713 kB of archives.
After this operation, 7,494 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2 [84.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2 [10.5 kB]
.
.
.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcac
heclean.service.
Processing triggers for ufw (0.36-6) ...
Processing triggers for systemd (245.4-4ubuntu3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Once the Apache service is installed. Start the Apache2 service by using the following command
root@linuxhelp:~# systemctl start apache2
Now install mariadb server by using the following command
root@linuxhelp:~# apt install mariadb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl
mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server-10.3 mariadb-server-core-10.3 socat
Suggested packages:
libmldbm-perl libnet-daemon-perl libsql-statement-perl libipc-sharedcache-perl mailx mariadb-test tinyca
The following NEW packages will be installed:
galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl
mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server mariadb-server-10.3
mariadb-server-core-10.3 socat
Setting up mariadb-server (1:10.3.22-1ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for doc-base (0.10.9) ...
Processing 1 added doc-base file...
Once the mariadb server is installed. Create a credentials of MySQL server
root@linuxhelp:~# mysql_secure_installation
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
set root password? [Y/n]
New password:
Re-enter new password:
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
Now restart the mysql service by below command.
root@linuxhelp:~# systemctl start mysql
Now install the PHP and its modules by using the following command
root@linuxhelp:~# apt install php php-xml php-mysql php-mcrypt php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libapache2-mod-php7.4 php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-mysql php7.4-opcache
php7.4-readline
Suggested packages:
php-pear
The following NEW packages will be installed:
libapache2-mod-php libapache2-mod-php7.4 php php-common php-mysql php7.4 php7.4-cli php7.4-common php7.4-json
php7.4-mysql php7.4-opcache php7.4-readline
0 upgraded, 12 newly installed, 0 to remove and 363 not upgraded.
Need to get 4,144 kB of archives.
After this operation, 18.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 php-common all 2:75 [11.9 kB]
.
.
.
Setting up libapache2-mod-php (2:7.4+75) ...
Setting up php (2:7.4+75) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for php7.4-cli (7.4.3-4ubuntu2.4) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) ...
Once the PHP configuration is completed. Restart the Apache2 service by using the following command
root@linuxhelp:~# systemctl restart apache2
Now download the wonder CMS package by using the wget command
root@linuxhelp:~# wget https://github.com/robiso/wondercms/archive/master.zip
--2020-11-24 13:50:51-- https://github.com/robiso/wondercms/archive/master.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/robiso/wondercms/zip/master [following]
--2020-11-24 13:50:51-- https://codeload.github.com/robiso/wondercms/zip/master
Resolving codeload.github.com (codeload.github.com)... 13.233.43.20
Connecting to codeload.github.com (codeload.github.com)|13.233.43.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
master.zip [ <=> ] 31.35K --.-KB/s in 0.05s
2020-11-24 13:50:52 (656 KB/s) - ‘master.zip’ saved [32105]
Extract the master.zip file by using the unzip command
root@linuxhelp:~# unzip master.zip
Archive: master.zip
f0d74f1d7aea282864311b8b954804179b5f8a97
creating: wondercms-master/
creating: wondercms-master/.github/
inflating: wondercms-master/.github/CONTRIBUTING.md
inflating: wondercms-master/.github/FUNDING.yml
.
.
.
creating: wondercms-master/themes/essence/css/
inflating: wondercms-master/themes/essence/css/data-style.css
inflating: wondercms-master/themes/essence/summary
inflating: wondercms-master/themes/essence/theme.php
extracting: wondercms-master/themes/essence/version
extracting: wondercms-master/version
Now list the file
root@linuxhelp:~# ls
master.zip wondercms-master
Now move the wondercms-master directory to apache2 root directory
root@linuxhelp:~# mv wondercms-master /var/www/wonder
Now set the ownership and permission to wonder CMS by using the following command
root@linuxhelp:~# chown -R www-data.www-data /var/www/wonder/
root@linuxhelp:~# chmod -R 755 /var/www/wonder/
Now configure virtual host for access the wonder CMS by using the following command
root@linuxhelp:~# vi /etc/apache2/sites-available/wonder.conf
Now disable the default site access by using the following command
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Now enable the wonder CMS by using the following command
root@linuxhelp:~# a2ensite wonder.conf
Enabling site wonder.
To activate the new configuration, you need to run:
systemctl reload apache2
Now enable the rewrite module by using the following command
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Now restart the apache2 service by using the following command
root@linuxhelp:~# systemctl restart apache2
Open the Browser and search your host name
With this, the method of installation of Wonder CMS on LinuxMint 20 comes to an end.