How To Install WordPress On Centos 7

This video shows you how to Install WordPress on Centos 7.

The commands that you need to follow along with the tutorial are:


Installing PHP.

  • sudo yum install php
  • sudo yum install php-mysqli


Setting up the Database.

  • Mysql -u root -p
  • CREATE DATABASE wordpress;
  • GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY ‘password123’;


Downloading WordPress and getting it ready for install.

  • wget
  • tar -zxvf latest.tar.gz
  • sudo mv wordpress/ /var/www/html/
  • sudo chown -R apache:apache /var/www/html/wordpress/
  • sudo chcon -Rv –type=httpd_sys_rw_content_t /var/www/html/wordpress
  • sudo vi /etc/httpd/conf/httpd.conf