How to Install WordPress on CentOS7 Linux CentOS WordPress 1 minute to read (190 words) () Overview Prerequisites Setup Database & DB User Setup Virtual Host Download WordPress Fix Permission Prerequisites Setup LAMP Stack Setup Database & DB User $ mysql -u root -p MariaDB [(none)]> CREATE DATABASE example_com; MariaDB [(none)]> CREATE USER example_user@localhost IDENTIFIED BY 'E1hciAx'; MariaDB [(none)]> GRANT ALL PRIVILEGES ON example_com.* TO example_user@localhost IDENTIFIED BY 'E1hciAx'; MariaDB [(none)]> FLUSH PRIVILEGES; Setup Virtual Host $ vim /etc/httpd/conf/httpd.conf +$ <VirtualHost 1.1.1.1:80> ServerName example.com SetEnv realm prod DocumentRoot /var/www/vhosts/example.com ErrorLog logs/example.com-error_log CustomLog logs/example.com-access_log enhanced <Directory /var/www/vhosts/example.com> Options Indexes FollowSymLinks Require all granted AllowOverride All </Directory> </VirtualHost> Download WordPress $ wget http://wordpress.org/latest.tar.gz $ tar -zxvf latest.tar.gz -C /var/www/vhosts/example.com/ --strip-components=1 Fix Permission $ sudo chown -R apache:apache /var/www/vhosts/example.com/ Email Address Post Navigation How to Install Linux Apache MySQL PHP (LAMP) Stack on CentOS7 How to Enable OpenSSL 1.0.2.a (TLSv1.1 & TLSv1.2) on CentOS 5 & RHEL5