• 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 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
{{postValue.id}}

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 1

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

With this, the method to install Wordpress CMS on RHEL7.6 comes to end

Tags:
owen
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Wordpress CMS?

A

Wordpress is the most powerful and popular content management system, that allows you to create and publish your content on the web.
Although it can be used for web publishing and manage content on an intranet or on a single computer.

Q

What are the requirements to install Wordpress CMS?

A

The requirements to install Wordpress CMS is Apache, Mysql, Php 7.2 and modules(php-gd php-pdo php-mbstring php-mcrypt php-mysql php-simplexml php-pecl-zip php-imap)

Q

What is the latest version of Wordpress CMS?

A

The latest version of Wordpress CMS is 5.5

Q

What are features available in "Wordpress"?

A

Refer the following link to get information about the features has available for "WordPress", "https://codex.wordpress.org/WordPress_Features"

Q

How can I transfer my blog or website from other services to a self-hosted "WordPress" installation?

A

You can exchange any blog or site from any administration you wish. We have a rundown of aides which will assist you in transferring from your particular stage in WordPress

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 keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

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.