• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install WordPress CMS on Oracle Linux 8.8

  • 00:31 cat /etc/os-release
  • 00:51 dnf install httpd mariadb-server -y
  • 01:25 dnf module reset php
  • 01:55 dnf module enable php:7.4 -y
  • 02:46 dnf install php php-fpm php-cli php-json php-gd php-mbstring php-pdo php-xml php-mysqlnd php-pecl-zip curl -y
  • 03:40 systemctl start httpd mariadb php-fpm
  • 04:12 systemctl enable httpd mariadb php-fpm
  • 04:25 mysql
  • 04:40 CREATE DATABASE wordpressdb;
  • 05:05 CREATE USER `wordpressuser`@`localhost` IDENTIFIED BY 'Linuxc#4';
  • 06:00 GRANT ALL ON wordpressdb.* TO `wordpressuser`@`localhost`;
  • 07:01 FLUSH PRIVILEGES;
  • 07:12 exit;
  • 07:37 cd /var/www/html
  • 07:52 curl https://wordpress.org/latest.tar.gz --output wordpress.tar.gz
  • 08:23 tar xf wordpress.tar.gz
  • 08:46 cd wordpress
  • 08:47 mv wp-config-sample.php wp-config.php
  • 09:15 vim wp-config.php
  • 10:26 chown -R apache:apache /var/www/html/wordpress
  • 10:48 chmod -R 755 /var/www/html/wordpress
  • 11:28 vim /etc/httpd/conf.d/wordpress.conf
  • 12:41 systemctl restart httpd
{{postValue.id}}

To Install WordPress On Oracle Linux 8.8

Introduction

WordPress is a popular open-source content management system (CMS). A Content Management System is a basic tool that makes it easy to manage important aspects to create your own website or blog that was written in PHP.

Installation steps:

Step 1: Check the OS version by using the below command

[root@linuxhelp ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.8"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:8:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.8

Step2: Install the LAMP stack components like Apache web server and MariaDB using the following command

 [root@linuxhelp ~]# dnf install httpd mariadb-server -y
Last metadata expiration check: 3:12:41 ago on Thursday 03 August 2023 03:20:55 PM IST.
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                             Architecture                    Version                                                                 Repository                                  Size
==============================================================================================================================================================================================================
Installing:
 httpd                                               x86_64                          2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6                           ol8_appstream                              1.4 M
 mariadb-server                                      x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                               16 M
Installing dependencies:
 apr                                                 x86_64                          1.6.3-12.el8                                                            ol8_appstream                              129 k
 apr-util                                            x86_64                          1.6.1-6.el8_8.1                                                         ol8_appstream                              105 k
 httpd-filesystem                                    noarch                          2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6                           ol8_appstream                               43 k
 httpd-tools                                         x86_64                          2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6                           ol8_appstream                              110 k
 mariadb                                             x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                              6.0 M
 mariadb-common                                      x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                               64 k
 mariadb-connector-c                                 x86_64                          3.1.11-2.el8_3                                                          ol8_appstream                              200 k
 mariadb-connector-c-config                          noarch                          3.1.11-2.el8_3                                                          ol8_appstream                               15 k
 mariadb-errmsg                                      x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                              235 k
 mod_http2                                           x86_64                          1.15.7-8.module+el8.8.0+21057+13668aee.3                                ol8_appstream                              155 k
 oracle-logos-httpd                                  noarch                          84.5-1.0.1.el8                                                          ol8_baseos_latest                           29 k
 perl-DBD-MySQL                                      x86_64                          4.046-3.module+el8.1.0+5427+61a5d536                                    ol8_appstream                              156 k
Installing weak dependencies:
 apr-util-bdb                                        x86_64                          1.6.1-6.el8_8.1                                                         ol8_appstream                               25 k
 apr-util-openssl                                    x86_64                          1.6.1-6.el8_8.1                                                         ol8_appstream                               27 k
 mariadb-backup                                      x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                              6.1 M
 mariadb-gssapi-server                               x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                               52 k
 mariadb-server-utils                                x86_64                          3:10.3.35-1.module+el8.6.0+20730+e6b28fc7                               ol8_appstream                              1.1 M
Enabling module streams:
 httpd                                                                               2.4
 mariadb                                                                             10.3
 perl-DBD-MySQL                                                                      4.046

Transaction Summary
==============================================================================================================================================================================================================
Install  19 Packages

Total download size: 32 M
Installed size: 159 M
Downloading Packages:
(1/19): oracle-logos-httpd-84.5-1.0.1.el8.noarch.rpm                                                                                                                          186 kB/s |  29 kB     00:00
(2/19): apr-1.6.3-12.el8.x86_64.rpm                                                                                                                                           780 kB/s | 129 kB     00:00
(3/19): apr-util-1.6.1-6.el8_8.1.x86_64.rpm                                                                                                                                   824 kB/s | 105 kB     00:00
(4/19): apr-util-bdb-1.6.1-6.el8_8.1.x86_64.rpm                                                                                                                               1.5 MB/s |  25 kB     00:00
(5/19): apr-util-openssl-1.6.1-6.el8_8.1.x86_64.rpm                                                                                                                           1.9 MB/s |  27 kB     00:00
(6/19): httpd-filesystem-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.noarch.rpm                                                                                             1.7 MB/s |  43 kB     00:00
(7/19): httpd-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64.rpm                                                                                                        5.9 MB/s | 1.4 MB     00:00
(8/19): httpd-tools-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64.rpm                                                                                                  155 kB/s | 110 kB     00:00
(9/19): mariadb-common-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                                     335 kB/s |  64 kB     00:00
(10/19): mariadb-connector-c-3.1.11-2.el8_3.x86_64.rpm                                                                                                                        577 kB/s | 200 kB     00:00
(11/19): mariadb-connector-c-config-3.1.11-2.el8_3.noarch.rpm                                                                                                                 113 kB/s |  15 kB     00:00
(12/19): mariadb-errmsg-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                                    658 kB/s | 235 kB     00:00
(13/19): mariadb-gssapi-server-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                             379 kB/s |  52 kB     00:00
(14/19): mariadb-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                                           2.3 MB/s | 6.0 MB     00:02
(15/19): mariadb-server-utils-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                              1.3 MB/s | 1.1 MB     00:00
(16/19): mod_http2-1.15.7-8.module+el8.8.0+21057+13668aee.3.x86_64.rpm                                                                                                        4.2 MB/s | 155 kB     00:00
(17/19): mariadb-backup-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                                    1.8 MB/s | 6.1 MB     00:03
(18/19): perl-DBD-MySQL-4.046-3.module+el8.1.0+5427+61a5d536.x86_64.rpm                                                                                                       1.3 MB/s | 156 kB     00:00
(19/19): mariadb-server-10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64.rpm                                                                                                    5.2 MB/s |  16 MB     00:03
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                         6.1 MB/s |  32 MB     00:05
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                      1/1
  Installing       : mariadb-connector-c-config-3.1.11-2.el8_3.noarch                                                                                                                                    1/19
  Installing       : mariadb-common-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                     2/19
  Installing       : apr-1.6.3-12.el8.x86_64                                                                                                                                                             3/19
  Running scriptlet: apr-1.6.3-12.el8.x86_64                                                                                                                                                             3/19
  Installing       : apr-util-bdb-1.6.1-6.el8_8.1.x86_64                                                                                                                                                 4/19
  Installing       : apr-util-openssl-1.6.1-6.el8_8.1.x86_64                                                                                                                                             5/19
  Installing       : apr-util-1.6.1-6.el8_8.1.x86_64                                                                                                                                                     6/19
  Running scriptlet: apr-util-1.6.1-6.el8_8.1.x86_64                                                                                                                                                     6/19
  Installing       : httpd-tools-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                                                                                                    7/19
  Installing       : mariadb-errmsg-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                     8/19
  Installing       : perl-DBD-MySQL-4.046-3.module+el8.1.0+5427+61a5d536.x86_64                                                                                                                          9/19
  Installing       : mariadb-connector-c-3.1.11-2.el8_3.x86_64                                                                                                                                          10/19
  Installing       : mariadb-backup-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    11/19
  Installing       : mariadb-gssapi-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                             12/19
  Installing       : mariadb-server-utils-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                              13/19
  Running scriptlet: mariadb-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    14/19
  Installing       : mariadb-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    14/19
  Running scriptlet: mariadb-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    14/19
  Installing       : mariadb-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                           15/19
  Running scriptlet: httpd-filesystem-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.noarch                                                                                                              16/19
  Installing       : httpd-filesystem-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.noarch                                                                                                              16/19
  Installing       : oracle-logos-httpd-84.5-1.0.1.el8.noarch                                                                                                                                           17/19
  Installing       : mod_http2-1.15.7-8.module+el8.8.0+21057+13668aee.3.x86_64                                                                                                                          18/19
  Installing       : httpd-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                                                                                                         19/19
  Running scriptlet: httpd-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                                                                                                         19/19
  Verifying        : oracle-logos-httpd-84.5-1.0.1.el8.noarch                                                                                                                                            1/19
  Verifying        : apr-1.6.3-12.el8.x86_64                                                                                                                                                             2/19
  Verifying        : apr-util-1.6.1-6.el8_8.1.x86_64                                                                                                                                                     3/19
  Verifying        : apr-util-bdb-1.6.1-6.el8_8.1.x86_64                                                                                                                                                 4/19
  Verifying        : apr-util-openssl-1.6.1-6.el8_8.1.x86_64                                                                                                                                             5/19
  Verifying        : httpd-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                                                                                                          6/19
  Verifying        : httpd-filesystem-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.noarch                                                                                                               7/19
  Verifying        : httpd-tools-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                                                                                                    8/19
  Verifying        : mariadb-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                            9/19
  Verifying        : mariadb-backup-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    10/19
  Verifying        : mariadb-common-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    11/19
  Verifying        : mariadb-connector-c-3.1.11-2.el8_3.x86_64                                                                                                                                          12/19
  Verifying        : mariadb-connector-c-config-3.1.11-2.el8_3.noarch                                                                                                                                   13/19
  Verifying        : mariadb-errmsg-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    14/19
  Verifying        : mariadb-gssapi-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                             15/19
  Verifying        : mariadb-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                                    16/19
  Verifying        : mariadb-server-utils-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                                                                                              17/19
  Verifying        : mod_http2-1.15.7-8.module+el8.8.0+21057+13668aee.3.x86_64                                                                                                                          18/19
  Verifying        : perl-DBD-MySQL-4.046-3.module+el8.1.0+5427+61a5d536.x86_64                                                                                                                         19/19

Installed:
  apr-1.6.3-12.el8.x86_64                                                                            apr-util-1.6.1-6.el8_8.1.x86_64
  apr-util-bdb-1.6.1-6.el8_8.1.x86_64                                                                apr-util-openssl-1.6.1-6.el8_8.1.x86_64
  httpd-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                         httpd-filesystem-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.noarch
  httpd-tools-2.4.37-56.0.1.module+el8.8.0+21057+13668aee.6.x86_64                                   mariadb-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64
  mariadb-backup-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                    mariadb-common-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64
  mariadb-connector-c-3.1.11-2.el8_3.x86_64                                                          mariadb-connector-c-config-3.1.11-2.el8_3.noarch
  mariadb-errmsg-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                    mariadb-gssapi-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64
  mariadb-server-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64                                    mariadb-server-utils-3:10.3.35-1.module+el8.6.0+20730+e6b28fc7.x86_64
  mod_http2-1.15.7-8.module+el8.8.0+21057+13668aee.3.x86_64                                          oracle-logos-httpd-84.5-1.0.1.el8.noarch
  perl-DBD-MySQL-4.046-3.module+el8.1.0+5427+61a5d536.x86_64

Complete!

Step 3: After installing both packages, you will need to install PHP and other PHP extensions to your system.reset the default PHP 7.2 with the following command

 [root@linuxhelp ~]#  dnf module reset php
Last metadata expiration check: 3:16:50 ago on Thursday 03 August 2023 03:20:55 PM IST.
Dependencies resolved.
Nothing to do.
Complete!

Step 4: enable PHP version 7.4 using the following command

[root@linuxhelp ~]#  dnf module enable php:7.4 -y
Last metadata expiration check: 3:17:59 ago on Thursday 03 August 2023 03:20:55 PM IST.
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                           Architecture                                     Version                                           Repository                                         Size
==============================================================================================================================================================================================================
Enabling module streams:
 nginx                                                                                              1.14
 php                                                                                                7.4

Transaction Summary
==============================================================================================================================================================================================================

Complete!

Step 5: install PHP 7.4 with other extensions using the following command

[root@linuxhelp ~]#  dnf install php php-fpm php-cli php-json php-gd php-mbstring php-pdo php-xml php-mysqlnd php-pecl-zip curl -y
Last metadata expiration check: 3:19:10 ago on Thursday 03 August 2023 03:20:55 PM IST.
Package curl-7.61.1-30.el8_8.2.x86_64 is already installed.
Dependencies resolved.
==============================================================================================================================================================================================================
 Package                                       Architecture                        Version                                                                   Repository                                  Size
==============================================================================================================================================================================================================
Installing:
 php                                           x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              1.5 M
 php-cli                                       x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              3.1 M
 php-fpm                                       x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              1.6 M
 php-gd                                        x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                               85 k
 php-json                                      x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                               75 k
 php-mbstring                                  x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              484 k
 php-mysqlnd                                   x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              193 k
 php-pdo                                       x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              123 k
 php-pecl-zip                                  x86_64                              1.18.2-1.module+el8.3.0+7685+72d70b58                                     ol8_appstream                               55 k
 php-xml                                       x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              174 k
Installing dependencies:
 libzip                                        x86_64                              1.6.1-1.module+el8.3.0+7685+72d70b58                                      ol8_appstream                               64 k
 nginx-filesystem                              noarch                              1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e                               ol8_appstream                               25 k
 php-common                                    x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              706 k
Installing weak dependencies:
 php-opcache                                   x86_64                              7.4.33-1.module+el8.8.0+20974+ef7eddfa                                    ol8_appstream                              268 k

Transaction Summary
==============================================================================================================================================================================================================
Install  14 Packages

Total download size: 8.4 M
Installed size: 33 M
Downloading Packages:
(1/14): nginx-filesystem-1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch.rpm                                                                                                 216 kB/s |  25 kB     00:00
(2/14): libzip-1.6.1-1.module+el8.3.0+7685+72d70b58.x86_64.rpm                                                                                                                375 kB/s |  64 kB     00:00
(3/14): php-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                                 4.9 MB/s | 1.5 MB     00:00
(4/14): php-common-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                          2.9 MB/s | 706 kB     00:00
(5/14): php-fpm-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                             7.6 MB/s | 1.6 MB     00:00
(6/14): php-json-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                            1.7 MB/s |  75 kB     00:00
(7/14): php-gd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                              233 kB/s |  85 kB     00:00
(8/14): php-mbstring-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                        115 kB/s | 484 kB     00:04
(9/14): php-opcache-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                         4.1 MB/s | 268 kB     00:00
(10/14): php-pdo-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                            2.0 MB/s | 123 kB     00:00
(11/14): php-pecl-zip-1.18.2-1.module+el8.3.0+7685+72d70b58.x86_64.rpm                                                                                                        200 kB/s |  55 kB     00:00
(12/14): php-xml-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                            1.1 MB/s | 174 kB     00:00
(13/14): php-cli-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                            555 kB/s | 3.1 MB     00:05
(14/14): php-mysqlnd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64.rpm                                                                                                         33 kB/s | 193 kB     00:05
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                         1.3 MB/s | 8.4 MB     00:06
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                      1/1
  Installing       : php-common-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                            1/14
  Installing       : php-pdo-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               2/14
  Installing       : php-cli-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               3/14
  Installing       : php-json-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                              4/14
  Installing       : php-mbstring-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                          5/14
  Installing       : php-opcache-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                           6/14
  Installing       : php-xml-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               7/14
  Running scriptlet: nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch                                                                                                                 8/14
  Installing       : nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch                                                                                                                 8/14
  Installing       : php-fpm-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               9/14
  Running scriptlet: php-fpm-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               9/14
  Installing       : libzip-1.6.1-1.module+el8.3.0+7685+72d70b58.x86_64                                                                                                                                 10/14
  Installing       : php-pecl-zip-1.18.2-1.module+el8.3.0+7685+72d70b58.x86_64                                                                                                                          11/14
  Installing       : php-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                                  12/14
  Installing       : php-mysqlnd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                          13/14
  Installing       : php-gd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               14/14
  Running scriptlet: php-gd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               14/14
  Running scriptlet: php-fpm-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                              14/14
  Verifying        : libzip-1.6.1-1.module+el8.3.0+7685+72d70b58.x86_64                                                                                                                                  1/14
  Verifying        : nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch                                                                                                                 2/14
  Verifying        : php-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                                   3/14
  Verifying        : php-cli-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               4/14
  Verifying        : php-common-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                            5/14
  Verifying        : php-fpm-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                               6/14
  Verifying        : php-gd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                                7/14
  Verifying        : php-json-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                              8/14
  Verifying        : php-mbstring-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                          9/14
  Verifying        : php-mysqlnd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                          10/14
  Verifying        : php-opcache-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                          11/14
  Verifying        : php-pdo-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                              12/14
  Verifying        : php-pecl-zip-1.18.2-1.module+el8.3.0+7685+72d70b58.x86_64                                                                                                                          13/14
  Verifying        : php-xml-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                                                                                                                              14/14

Installed:
  libzip-1.6.1-1.module+el8.3.0+7685+72d70b58.x86_64              nginx-filesystem-1:1.14.1-9.0.1.module+el8.0.0+5347+9282027e.noarch       php-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64
  php-cli-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64           php-common-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                  php-fpm-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64
  php-gd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64            php-json-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                    php-mbstring-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64
  php-mysqlnd-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64       php-opcache-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64                 php-pdo-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64
  php-pecl-zip-1.18.2-1.module+el8.3.0+7685+72d70b58.x86_64       php-xml-7.4.33-1.module+el8.8.0+20974+ef7eddfa.x86_64

Complete!

Step 6: Once all the packages are installed, start and enable Apache, PHP-FPM, and MariaDB services using the following command

[root@linuxhelp ~]#  systemctl start httpd mariadb php-fpm
[root@linuxhelp ~]#  systemctl enable httpd mariadb php-fpm
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
Created symlink /etc/systemd/system/mysql.service → /usr/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /usr/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /usr/lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.

Step 7: Create a Database for WordPress by using the below command.First, connect to the MariaDB with the following command

[root@linuxhelp ~]#  mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.3.35-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

Step 8: Once you are connected, create a database and user with the following command

MariaDB [(none)]> CREATE DATABASE wordpressdb;
MariaDB [(none)]> CREATE USER `wordpressuser`@`localhost` IDENTIFIED BY 'Linuxc#4';

Step 9 : grant all the privileges to the WordPress database using the following command

GRANT ALL ON wordpressdb.* TO `wordpressuser`@`localhost`;

Step 10: flush the privileges and exit from the MariaDB with the following command

FLUSH PRIVILEGES;
EXIT;

Step 11: Next, change the directory to the Apache default web root directory and download the latest version of WordPress with the following command

[root@linuxhelp ~]#  cd /var/www/html
[root@linuxhelp ~]#  curl https://wordpress.org/latest.tar.gz --output wordpress.tar.gz

Step 11: Once the download is completed, extract the downloaded file with the following command

[root@linuxhelp ~]#  tar xf wordpress.tar.gz

Step 12: change the directory to WordPress and rename the WordPress configuration file:

[root@linuxhelp ~]#  cd wordpress
[root@linuxhelp wordpress ~]#  mv wp-config-sample.php wp-config.php

Step 13: edit the WordPress configuration file and define your database settings:

[root@linuxhelp wordpress ~]#  vim wp-config.php
Change the following lines
/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpressdb' );
/** Database username */
define( 'DB_USER', 'wordpressuser' );
/** Database password */
define( 'DB_PASSWORD', 'Linuxc#4' );

Step 14 : set proper ownership of the WordPress directory with the following command:

[root@linuxhelp wordpress ~]#  chown -R apache:apache /var/www/html/wordpress
[root@linuxhelp wordpress ~]#  chmod -R 755 /var/www/html/wordpress

Step 15: Next, you will need to create an Apache virtual host file to host the WordPress. You can create it with the following command

[root@linuxhelp ~]# vim /etc/httpd/conf.d/wordpress.conf
Add the following lines:
<VirtualHost *:80>
ServerAdmin root@localhost
ServerName wordpress.linuxhelp.com
DocumentRoot /var/www/html/wordpress
<Directory "/var/www/html/wordpress">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/httpd/wordpress_error.log
CustomLog /var/log/httpd/wordpress_access.log common
</VirtualHost>

Step 16: Save and close the file, then restart the Apache service to apply the configuration changes:

[root@linuxhelp ~]# systemctl restart httpd

Step 17:Access WordPress Installer Now, open your web browser and access the WordPress installer using the URL //wordpress.linuxhelp.com. Snap 1

Step 18: Provide your site information and click on the Install WordPress button snap 2

Step 19: Click on the Log In button. Snap 3

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install WordPress CMS on Oracle Linux 8.8. Your feedback is much welcome.

Tags:
michael
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is meant by LMS?

A

LMS stands for learning management system.

Q

When was WordPress founded?

A

WordPress was released on May 27, 2003

Q

Is WordPress free of cost?

A

Yes! The software is released under GPLv2.

Q

WordPress is written in which language?

A

It was written in PHP.

Q

Is WordPress provide themes?

A

Yes, themes may be directly installed using the WordPress "Appearance" administration tool in the dashboard.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.