How to Install WordPress 4.7 Using Apache or Nginx on RHEL/CentOS and Fedora

How to Install WordPress 4.7 Using Apache or Nginx on RHEL/CentOS and Fedora
WordPress is an open source and free blogging application and a dynamic CMS (Content Management System) developed using MySQL and PHP. It has huge number of third party plugins and themes. WordPress currently one of the most popular blogging platform available on the internet and used by millions of people across the globe.
In this article, I will show you how to install WordPress using LAMP (Linux, Apache, MySQL/MariaDB, PHP) and LEMP (Linux, Nginx, MySQL/MariaDB, PHP) on RHEL/CentOS 7/6 and Fedora 25-20 and older Linux distributions.
So, please select your installation method based on your web server and distribution.
What Is LAMP and LEMP?
LAMP (Linux, Apache, MySQL, PHP) and LEMP (Linux, Nginx, MySQL, PHP) is an open source Web application platform that runs on Linux systems. Apache and Nginx both are Web servers, MySQL is RDMS (Relational Database Management System) and PHP is a server side scripting language.
As I said above, I will show WordPress installation on both Apache and Nginx Web server as follows:
Install WordPress On Apache Web Server
This installation guide shows you how to install latest WordPress using LAMP setup on RHEL 7/6, CentOS 7/6 and Fedora 25-20.
Step 1: Install LAMP Environment
In case, if you don’t have LAMP setup on your systems, please use the following instructions to install it.
—————— On RHEL/CentOS 7 ——————

yum install httpd mariadb mariadb-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt

—————— On RHEL/CentOS 6 and Fedora 15-20 ——————

yum install httpd mysql mysql-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt

—————— On Fedora 21-25 ——————

dnf install httpd mariadb mariadb-server php php-common php-mysql php-gd php-xml php-mbstring php-mcrypt

After MySQL/MariaDB installed, run the following command and follow on screen wizard to secure your MySQL installation.
# mysql_secure_installation
Step 2: Download WordPress

You must be root user to download the package.
# cd /tmp
# wget http://wordpress.org/latest.tar.gz

Step 3: Extracting WordPress Files to Apache

Once the download finishes, run the following command to untar it.
# tar -xvzf latest.tar.gz -C /var/www/html
 

Be the first to comment

Leave a Reply

Your email address will not be published.


*