How to Install WordPress with Apache on CentOS 7

In this guide, we will learn how to set up a WordPress with an Apache web server on CentOS 7, it’s ok if you are a beginner at Linux

What you will learn 

  1. Where to Buy VPS and Cloud Hosting for WordPress
  2. How to Register Your Domain Name.
  3. basic Linux terminal commands
  4. how to install apache in centos7
  5. Learn How To Install PHP 7, 7.2,& 7.3 On CentOS 7
  6. how to install mariadb on centos 7
  7. how to create a virtual host in apache Linux
  8. Install SSL certificate
  9. how to install WordPress in apache
  10.  How to create an FTP user 


Ensure the following prerequisites are met before continuing with this tutorial:

  • VPS and Cloud server with dedicated IP (No worry, I will tell you where the buy good server)
  • A domain name pointed to your server’s public IP address. We will use (No worry, I will tell you where the buy good server)

Where to Buy VPS and Cloud Hosting for WordPress

  1. Free | $100 Credit (
  2. OVH – Cloud, Virtual Private Servers ($35 Free Credit) 

Carefully read this line here.

When you purchase VPS, you can choose RAM and other stuff according to your needs, but I suggest buying Digital ocean if you are learning. They provide Free credit for two months. and select Centos7 as our OS 

How to Register Your Domain Name

  1. Godaddy
  2. Bigrock
  3. Namecheap

For better good Domain price deals, you can follow this link 

 TLD List: Compare Prices of All Top-Level Domains

Now you have a domain and Server with dedicated IP, and It’s time to connect IP(physical address of your Server) and Domain. You can do it from the Manage DNS section of your Domain provider. 

It’s easy to do. I will not cover this in that section, but if you feel to help, you can drop me a message. You have to update your “A” record and Point to your IP 

Basic Linux terminal commands 

  1. How to connect to your VPS for the first time via SSH 
For Linux like terminal/ window power shell :
B.  Yes/no?  choose YES
C. Now Enter your password (for Windows click Right for past)

connect to your VPS via SSH by using PuTTY

[STEP 1] >  First download an PuTTY(SSH client) for this guide (download link)

[STEP 2] > Enter the IP address of your VPS into the “Host Name (or IP address) field.  

[STEP 3] > Click “Open”

[STEP 4]> Simply hit “Yes”
[STEP 5] > You will now be prompted for a username; in most cases, this will be the root. Once you type the username and press enter, you will be prompted for the password. Enter your password (right-click for past in windows ) and hit enter.

Congratulations. We are now connected and learn more Commands

Root Login with password pwd > The command displays the path of your current working directory:

cd > The cd (“change directory”) command is used to change the current working directory in Linux and other Unix-like operating systems.

LS >  Listing directory contents (ls command) 

CAT > Displaying file contents (cat command)

touch > Creating files (touch command)

mkdir > Creating directories (mkdir command)

rm >  Removing files and directories (rm command) 

CP > Copying files and directories (cp command) 

MV > Moving and renaming files and directories (mv command) 

yum > Installing and Removing Packages 

Remain will update soon little bit sick now.

Remain Will update on 31/03 ….