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’;
  • FLUSH PRIVILEGES;

 

Downloading WordPress and getting it ready for install.

  • wget http://wordpress.org/latest.tar.gz
  • 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

 

This entry was posted in CentOS, Databases, learning, linux, mysql. Bookmark the permalink.

2 Responses to How To Install WordPress On Centos 7

  1. Pingback: How To Install WordPress On Centos 7 – Install WordPress La Fontaine Shop

  2. Pingback: How To Install WordPress On Centos 7 – My blog

Comments are closed.