How to Install & Configure WordPress on Centos 7


WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. You can use wordpress to launch your blog or any kind of website.

Perquisites: LAMP Server

Note: – If you want to see the Installation of LAMP Server, click on below Link:

Install Lamp Server On CentOS

Step 1. Login to your Linux machine.

Step 2. Update packages.

# yum update

Note: – Make sure to install the required packages of PHP for WordPress:

yum install php70w-curl php70w-xml php70w-gettext php70w-cgi php70w-mysql -y

Step 3. Login Into your Mysql Server.

# mysql -u root -p

Step 4. Create a New Database for Wordpress.

mysql> Create database wordpressdb;

Step 5. Create a new User for WordPress & specify the new Password for that user.

mysql> create user wordpress;
mysql> GRANT ALL PRIVILEGES ON wordpressdb.* TO 'wordpress'@'localhost' IDENTIFIED BY 'wordpasswd';

Step 6. Exit from Mysql.

mysql> exit

Step 7. Move into your web server Document Root.

# cd /var/www/html

Step 8.  Download WordPress by using below link.

# wget

Step 9. Extract latest.tar.gz.

# tar -xvzf latest.tar.gz

Step 10. Change the Permission of HTML directory.

# chown -R www-data:www-data /var/www/html/wordpress
# chmod -R 755 /var/www/html/wordpress

Step 11. Restart your Webserver.

# service httpd restart

Step 12. Search http://ip/wordpress from your browser.


Click on Let’s go button.

Step 13. Specify the following details of WordPress as per your requirements & then click on Submit button.


Step 14. Click on Run the install button to continue further installation of WordPress.


Step 15. Specify the following details according to your requirements.After that click on Install WordPress button.


Step 16. Specify the username & password of WordPress in login box & then click on login button.


Step 17. Now you are successfully logged into your WordPress account.