How to Install Wordpress CMS on RHEL7.6
- 00:30 cat /etc/os-release
- 00:40 mysql -u root -p
- 01:34 wget https://wordpress.org/latest.tar.gz
- 01:48 tar xvzf latest.tar.gz
- 02:04 mv wordpress/ /var/www/wordpress
- 02:10 cd /var/www/wordpress
- 02:24 mv wp-config-sample.php wp-config.php
- 02:36 vim wp-config.php
- 03:20 chown -R apache. ./
- 03:29 chmod -R 755 ./
- 03:43 vim /etc/httpd/conf.d/word.conf
- 04:10 vim /etc/hosts
- 04:28 systemctl restart httpd
How to Install Wordpress CMS on RHEL7.6
Introduction:
Wordpress is the most powerful and popular content management system, in which you can create and publish any content on the web. Like any other content management system, it can be used for web publishing and manage content on an intranet or on a single computer. This tutorial covers the method to install Wordpress CMS on RHEL7.6
Pre-requirements
Apache
Mysql
Php 7.2 and modules(php-gd php-pdo php-mbstring php-mcrypt php-mysql php-simplexml php-pecl-zip php-imap)
Installation Process:
At first you need to run the following command.
[root@linuxhelp ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
Run the following comment for database configuration.
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.3.24-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.
MariaDB [(none)]> create database wordpress;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> grant all on wordpress.* to user@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> exit
Bye
Download the Wordpress CMS using the following link
[root@linuxhelp ~]# wget https://wordpress.org/latest.tar.gz
--2020-08-27 17:22:02-- https://wordpress.org/latest.tar.gz
Resolving wordpress.org (wordpress.org)... 198.143.164.252
Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12979571 (12M) [application/octet-stream]
Saving to: ‘latest.tar.gz’
100%[=====================================================================================>] 1,29,79,571 682KB/s in 57s
2020-08-27 17:23:00 (224 KB/s) - ‘latest.tar.gz’ saved [12979571/12979571]
Use the below command to extract the downloaded tar file
[root@linuxhelp ~]# tar xvzf latest.tar.gz
wordpress/
wordpress/xmlrpc.php
wordpress/wp-blog-header.php
wordpress/readme.html
….
….
wordpress/wp-settings.php
wordpress/license.txt
wordpress/wp-content/
Move the Extracted Wordpress directory under apache root directory
[root@linuxhelp ~]#mv wordpress/ /var/www/wordpress
Change Directory to wordpress
[root@linuxhelp ~]# cd /var/www/wordpress
Rename the below configuration file
[root@linuxhelp wordpress]# mv wp-config-sample.php wp-config.php
Edit the configuration file with below details
[root@linuxhelp wordpress]# vim wp-config.php
define( 'DB_NAME', 'wordpress' );
define( 'DB_USER', 'user' );
define( 'DB_PASSWORD', 'linuxc' );
define( 'DB_HOST', 'localhost' );
Now, we have to change ownership and permission for the wordpress directory
[root@linuxhelp wordpress]# chown -R apache. ./
[root@linuxhelp wordpress]# chmod -R 755 ./
Configure the virtualhost for the wordpress cms
[root@linuxhelp wordpress]# vim /etc/httpd/conf.d/word.conf
Then, make an entry in host file
[root@linuxhelp wordpress]# vim /etc/hosts
After the configuration we have to restart the apache service to update the changes
[root@linuxhelp wordpress]# systemctl restart httpd
Navigate to the Browser, where provide your domain name

Select the language and click on continue
Configure the admin account then click on install
Login into the wordpress cms with admin credential

With this, the method to install Wordpress CMS on RHEL7.6 comes to end
Comments ( 0 )
No comments available