How to install WonderCMS on Oracle Linx 9.3
To Install WonderCMS On Oracle Linux 9.3
Introduction:
WonderCMS is a free and open-source Content Management System and 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="Oracle Linux Server"
VERSION="9.3"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Oracle Linux Server 9.3"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:9:3:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9"
ORACLE_BUGZILLA_PRODUCT_VERSION=9.3
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=9.3
Step 2: Install Apache web server by using the below command
[root@linuxhelp ~]# dnf install httpd* -y
Oracle Linux 9 BaseOS Latest (x86_64) 17 kB/s | 3.6 kB 00:00
Oracle Linux 9 BaseOS Latest (x86_64) 7.4 MB/s | 23 MB 00:03
Oracle Linux 9 Application Stream Packages (x86_64) 24 kB/s | 3.9 kB 00:00
Oracle Linux 9 Application Stream Packages (x86_64) 8.3 MB/s | 31 MB 00:03
Oracle Linux 9 UEK Release 7 (x86_64) 19 kB/s | 3.0 kB 00:00
Oracle Linux 9 UEK Release 7 (x86_64) 8.8 MB/s | 31 MB 00:03
Last metadata expiration check: 0:00:07 ago on Monday 29 April 2024 12:33:11 AM.
Dependencies resolved.
Installed:
apr-1.7.0-12.el9_3.x86_64 apr-devel-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 apr-util-devel-1.6.1-23.el9.x86_64 apr-util-openssl-1.6.1-23.el9.x86_64
cyrus-sasl-2.1.27-21.el9.x86_64 cyrus-sasl-devel-2.1.27-21.el9.x86_64 expat-devel-2.5.0-1.el9.x86_64
httpd-2.4.57-5.0.1.el9.x86_64 httpd-core-2.4.57-5.0.1.el9.x86_64 httpd-devel-2.4.57-5.0.1.el9.x86_64
httpd-filesystem-2.4.57-5.0.1.el9.noarch httpd-manual-2.4.57-5.0.1.el9.noarch httpd-tools-2.4.57-5.0.1.el9.x86_64
libdb-devel-5.3.28-53.0.1.el9.x86_64 mod_http2-1.15.19-5.el9_3.1.x86_64 mod_lua-2.4.57-5.0.1.el9.x86_64
openldap-devel-2.6.3-1.el9.x86_64 oracle-logos-httpd-90.2-1.0.4.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 Mon 2024-04-29 00:34:11 IST; 14s ago
Docs: man:httpd.service(8)
Main PID: 104291 (httpd)
Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec"
Tasks: 213 (limit: 21644)
Memory: 39.5M
CPU: 398ms
CGroup: /system.slice/httpd.service
├─104291 /usr/sbin/httpd -DFOREGROUND
├─104292 /usr/sbin/httpd -DFOREGROUND
├─104293 /usr/sbin/httpd -DFOREGROUND
├─104294 /usr/sbin/httpd -DFOREGROUND
└─104295 /usr/sbin/httpd -DFOREGROUND
Apr 29 00:34:10 linuxhelp systemd[1]: Starting The Apache HTTP Server...
Apr 29 00:34:11 linuxhelp httpd[104291]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using f>
Apr 29 00:34:11 linuxhelp systemd[1]: Started The Apache HTTP Server.
Apr 29 00:34:11 linuxhelp httpd[104291]: Server configured, listening on: port 80
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:38 ago on Monday 29 April 2024 12:33:11 AM.
Dependencies resolved.
Installed:
libzip-1.7.3-7.el9.x86_64 nginx-filesystem-1:1.20.1-14.0.1.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
php-gd-8.0.30-1.el9_2.x86_64 php-mbstring-8.0.30-1.el9_2.x86_64 php-mysqlnd-8.0.30-1.el9_2.x86_64
php-opcache-8.0.30-1.el9_2.x86_64 php-pdo-8.0.30-1.el9_2.x86_64 php-pecl-zip-1.19.2-6.el9.x86_64
php-xml-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
--2024-04-29 00:35:26-- 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=AKIAVCODYLSA53PQK4ZA%2F20240428%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240428T190527Z&X-Amz-Expires=300&X-Amz-Signature=7e8c0b63c285b6169f0200e166d4146499b8c50f911e0a534efb9742518cb203&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]
--2024-04-29 00:35:27-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/15203915/680729e8-311d-4149-bd03-df2d92988880?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240428%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240428T190527Z&X-Amz-Expires=300&X-Amz-Signature=7e8c0b63c285b6169f0200e166d4146499b8c50f911e0a534efb9742518cb203&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.110.133, 185.199.109.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.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.007s
2024-04-29 00:35:28 (6.94 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 1067 Jan 7 03:03 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Desktop
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Documents
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Downloads
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Music
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Pictures
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Public
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Templates
drwxr-xr-x. 2 root root 6 Jan 7 03:26 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/data-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 1067 Jan 7 03:03 anaconda-ks.cfg
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Desktop
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Documents
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Downloads
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Music
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Pictures
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Public
drwxr-xr-x. 2 root root 6 Jan 7 03:26 Templates
drwxr-xr-x. 2 root root 6 Jan 7 03:26 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 755 /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.140: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 by using the following command
[root@linuxhelp ~]# systemctl restart httpd
Step 16: Open the Web browser and search the IP address as shown in the below image
Step 17: Copy the password as shown in the image and click “CLICK HERE TO LOGIN ” icon.
Step 18: Enter the copied password here and click LOGIN
This is the Dashboard 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 Oracle Linux 9.3. Your feedback is much welcome.