How to install WonderCMS on Rocky Linux 9.3
- 00:27 Cat /etc/os-release
- 00:42 dnf install httpd -y
- 01:16 systemctl enable https
- 01:26 systemctl start httpd
- 01:39 systemctl status httpd
- 01:57 dnf install php php-fpm php-mysqlnd php-opcache php-gd php-xml php-mbstring -y php-zip
- 02:16 php -v
- 02:31 wget https://github.com/WonderCMS/wondercms/releases/download/3.4.3/wondercms-343.zip
- 02:44 ll
- 03:00 unzip wondercms-343.zip
- 03:09 ll
- 03:23 mv wondercms /var/www/wonder/
- 03:44 chmod -R 775 /var/www/wonder/
- 03:55 chown -R apache:apache /var/www/wonder/
- 04:20 vim /etc/httpd/conf.d/wonder.conf
- 04:50 httpd -t
- 05:05 setenforce 0
- 05:17 systemctl restart httpd
To Install WonderCMS On Rocky Linux 9.3
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.
Installation Steps:
Step 1: Check the OS version by using the below command
[root@Linuxhelp ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.3 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
Step 2: Install Apache web server by using the below command
[root@Linuxhelp ~]# dnf install httpd -y
Rocky Linux 9 - BaseOS 4.8 kB/s | 4.1 kB 00:00
Rocky Linux 9 - BaseOS 1.6 MB/s | 2.2 MB 00:01
Rocky Linux 9 - AppStream 5.6 kB/s | 4.5 kB 00:00
Rocky Linux 9 - AppStream 3.2 MB/s | 7.4 MB 00:02
Rocky Linux 9 - Extras 3.0 kB/s | 2.9 kB 00:00
Dependencies resolved.
=====================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================
Installing:
httpd x86_64 2.4.57-5.el9 appstream 46 k
Installing dependencies:
apr x86_64 1.7.0-12.el9_3 appstream 122 k
apr-util x86_64 1.6.1-23.el9 appstream 94 k
80 k
148 k
mod_lua x86_64 2.4.57-5.el9 appstream 60 k
Transaction Summary
=====================================================================================================================
Install 11 Packages
Total download size: 2.0 M
Installed size: 6.0 M
Downloading Packages:
(1/11): rocky-logos-httpd-90.14-2.el9.noarch.rpm 107 kB/s | 24 kB 00:00
(2/11): mod_lua-2.4.57-5.el9.x86_64.rpm 225 kB/s | 60 kB 00:00
(3/11): httpd-2.4.57-5.el9.x86_64.rpm 593 kB/s | 46 kB 00:00
---------------------------------------------------------------------------------------------------------------------
Total 1.5 MB/s | 2.0 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : apr-1.7.0-12.el9_3.x86_64 1/11
Installing : apr-util-bdb-1.6.1-23.el9.x86_64 2/11
Installing : apr-util-1.6.1-23.el9.x86_64 3/11
Installing : apr-util-openssl-1.6.1-23.el9.x86_64
Verifying : rocky-logos-httpd-90.14-2.el9.noarch 1/11
Verifying : mod_lua-2.4.57-5.el9.x86_64 2/11
Verifying : httpd-tools-2.4.57-5.el9.x86_64 3/11
Installed:
apr-1.7.0-12.el9_3.x86_64 apr-util-1.6.1-23.el9.x86_64 apr-util-bdb-1.6.1-23.el9.x86_64
mod_lua-2.4.57-5.el9.x86_64 rocky-logos-httpd-90.14-2.el9.noarch
Complete!
Step 3: Enable and start the Apache Service by using the below command
[root@Linuxhelp ~]# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@Linuxhelp ~]# systemctl start httpd
Step 4: Check the status of the Apache service by using the below command
[root@Linuxhelp ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled)
Active: active (running) since Fri 2023-12-22 05:08:51 IST; 15s ago
Docs: man:httpd.service(8)
Main PID: 215289 (httpd)
Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec"
Tasks: 213 (limit: 22877)
Memory: 35.3M
CPU: 237ms
CGroup: /system.slice/httpd.service
├─215289 /usr/sbin/httpd -DFOREGROUND
├─215290 /usr/sbin/httpd -DFOREGROUND
├─215291 /usr/sbin/httpd -DFOREGROUND
├─215292 /usr/sbin/httpd -DFOREGROUND
└─215293 /usr/sbin/httpd -DFOREGROUND
Dec 22 05:08:50 Linuxhelp systemd[1]: Starting The Apache HTTP Server...
Dec 22 05:08:51 Linuxhelp httpd[215289]: AH00558: httpd: Could not reliably determine the server's fully qualified d>
Dec 22 05:08:51 Linuxhelp httpd[215289]: Server configured, listening on: port 80
Dec 22 05:08:51 Linuxhelp systemd[1]: Started The Apache HTTP Server.
Step 5: Install PHP and its modules by using the below command
[root@Linuxhelp ~]# dnf install php php-fpm php-mysqlnd php-opcache php-gd php-xml php-mbstring -y php-zip
Last metadata expiration check: 0:01:33 ago on Friday 22 December 2023 05:08:06 AM.
Dependencies resolved.
=====================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================
Installing:
php x86_64 8.0.30-1.el9_2 appstream 7.7 k
php-fpm x86_64 8.0.30-1.el9_2 appstream 1.6 M
php-gd x86_64 8.0.30-1.el9_2 appstream 39 k
54 k
php-xml x86_64 8.0.30-1.el9_2 appstream 131 k
Installing dependencies:
libzip x86_64 1.7.3-7.el9 appstream 62 k
nginx-filesystem noarch 1:1.20.1-14.el9_2.1 appstream 8.5 k
php-common x86_64 8.0.30-1.el9_2 appstream 665 k
Transaction Summary
=====================================================================================================================
Install 13 Packages
Total download size: 6.8 M
Installed size: 36 M
Downloading Packages:
(1/13): nginx-filesystem-1.20.1-14.el9_2.1.noarch.rpm 39 kB/s | 8.5 kB 00:00
(2/13): libzip-1.7.3-7.el9.x86_64.rpm 243 kB/s | 62 kB 00:00
(3/13): php-pecl-zip-1.19.2-6.el9.x86_64.rpm 200 kB/s | 54 kB 00:00
---------------------------------------------------------------------------------------------------------------------
Total 3.8 MB/s | 6.8 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : php-common-8.0.30-1.el9_2.x86_64 1/13
Installing : php-pdo-8.0.30-1.el9_2.x86_64 2/13
Installing : php-xml-8.0.30-1.el9_2.x86_64 3/13
Installing : php-opcache-8.0.30-1.el9_2.x86_64
Verifying : nginx-filesystem-1:1.20.1-14.el9_2.1.noarch 1/13
Verifying : libzip-1.7.3-7.el9.x86_64 2/13
Verifying : php-pecl-zip-1.19.2-6.el9.x86_64 3/13
Verifying : php-xml-8.0.30-1.el9_2.x86_64
Installed:
libzip-1.7.3-7.el9.x86_64 nginx-filesystem-1:1.20.1-14.el9_2.1.noarch php-8.0.30-1.el9_2.x86_64
php-cli-8.0.30-1.el9_2.x86_64 php-common-8.0.30-1.el9_2.x86_64 php-fpm-8.0.30-1.el9_2.x86_64
Complete!
Step 6: Check the installed PHP version by using the below command
[root@Linuxhelp ~]# php -v
PHP 8.0.30 (cli) (built: Aug 3 2023 17:13:08) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies
Step 7: Download the Wonder CMS Package by using the below command
[root@Linuxhelp ~]# wget https://github.com/WonderCMS/wondercms/releases/download/3.4.3/wondercms-343.zip
--2023-12-22 05:10:50-- https://github.com/WonderCMS/wondercms/releases/download/3.4.3/wondercms-343.zip
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/15203915/680729e8-311d-4149-bd03-df2d92988880?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231221T234050Z&X-Amz-Expires=300&X-Amz-Signature=27032c268c35018e8007df3dd2f2e2f0cf3c4a7cb67930ec94e7b234c14d1230&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=15203915&response-content-disposition=attachment%3B%20filename%3Dwondercms-343.zip&response-content-type=application%2Foctet-stream [following]
--2023-12-22 05:10:50-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/15203915/680729e8-311d-4149-bd03-df2d92988880?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231221T234050Z&X-Amz-Expires=300&X-Amz-Signature=27032c268c35018e8007df3dd2f2e2f0cf3c4a7cb67930ec94e7b234c14d1230&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=15203915&response-content-disposition=attachment%3B%20filename%3Dwondercms-343.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50674 (49K) [application/octet-stream]
Saving to: ‘wondercms-343.zip’
wondercms-343.zip 100%[==============================================>] 49.49K --.-KB/s in 0.004s
2023-12-22 05:10:51 (13.5 MB/s) - ‘wondercms-343.zip’ saved [50674/50674]
Step 8: Long list the files by using the below command
[root@Linuxhelp ~]# ll
total 56
-rw-------. 1 root root 1039 Aug 13 22:24 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Desktop
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Documents
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Downloads
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Music
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Pictures
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Public
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Templates
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Videos
-rw-r--r--. 1 root root 50674 Nov 5 14:46 wondercms-343.zip
Step 9: Extract the downloaded zip file by using unzip command
[root@Linuxhelp ~]# unzip wondercms-343.zip
Archive: wondercms-343.zip
creating: wondercms/
inflating: wondercms/index.php
creating: wondercms/themes/
creating: wondercms/themes/sky/
inflating: wondercms/themes/sky/wcms-modules.json
creating: wondercms/themes/sky/css/
creating: wondercms/themes/sky/css/fonts/
extracting: wondercms/themes/sky/css/fonts/catamaran-v7-latin-ext_latin-regular.woff2
extracting: wondercms/themes/sky/css/fonts/catamaran-v7-latin-ext_latin-700.woff2
inflating: wondercms/themes/sky/css/style.css
inflating: wondercms/themes/sky/theme.php
inflating: wondercms/.htaccess
Step 10: Again long list the files and check the extracted directory by using the below command
[root@Linuxhelp ~]# ll
total 56
-rw-------. 1 root root 1039 Aug 13 22:24 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Desktop
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Documents
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Downloads
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Music
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Pictures
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Public
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Templates
drwxr-xr-x. 2 root root 6 Aug 13 22:33 Videos
drwxr-xr-x. 3 root root 54 Nov 5 14:37 wondercms
-rw-r--r--. 1 root root 50674 Nov 5 14:46 wondercms-343.zip
Step 11: Rename and move the extracted directory to Apache Root Directory by using the below command
[root@Linuxhelp ~]# mv wondercms /var/www/wonder/
Step 12: Grant Permission and Set Ownership for Wonder CMS by using the below command
[root@Linuxhelp ~]# chmod -R 775 /var/www/wonder/
[root@Linuxhelp ~]# chown -R apache:apache /var/www/wonder /
Step 13: Create a Virtual Configuration file to Access Wonder CMS by using the below command.
[root@Linuxhelp ~]# vim /etc/httpd/conf.d/wonder.conf
Insert the below lines in the configuration file
<virtualhost 192.168.6.130:80>
servername www.linuxhelp1.com
Documentroot /var/www/wonder
<Directory /var/www/wonder >
AllowOverride all
allow from all
</Directory>
</virtualhost>
Step 14: Disable the SELinux by using the following command
[root@Linuxhelp ~]# setenforce 0
Step 15: Restart the Apache service to apply all changes.
[root@Linuxhelp ~]# systemctl restart httpd
Step 16: Open the Web browser and search the IP address as shown in the below image

Copy the password as shown in the above image and click “CLICK HERE TO LOGIN ” icon.

Enter the copied password here and click LOGIN

This is the Dashboard page of WonderCMS
Conclusion:
We have reached the end of this article. In this guide, we have walked you through the steps required to install WonderCMS on Rocky Linux 9.3. Your feedback is much welcome.
Comments ( 0 )
No comments available