Dec 15, 2018
As one of the ways to try WordPress easily, you can build the environment on your PC.
Let me show how to install CentOS7 and WordPress into VirtualBox.
"Bridged Adapter" is recommended. Then it will be easy to download a WordPress install package and so on.
"Minimal Install" is OK for "SOFTWARE SELECTION".
We will download necessary RPMs after the finish of CentOS installation.
We need only "root".
You don't have to make any other users.
The CentOS 7.6 starts with CUI console.
# systemctl stop firewalld
# systemctl disable firewalld
# yum install httpd mariadb mariadb-server php php-mysql wget
# vi /etc/httpd/conf/httpd.conf
(Put the statements described as below on the bottom of httpd.conf)
# For WordPress
DocumentRoot "/var/www/wordpress"
<Directory "/var/www/wordpress">
AllowOverride All
</Directory>
# systemctl start httpd
# systemctl enable httpd
# systemctl start mariadb
# systemctl enable mariadb
# mysql -u root
mysql> update mysql.user set password=password('password') where user = 'root';
mysql> flush privileges;
mysql> exit;
# mysql -u root -p
(Enter root password)
mysql> create database wp;
mysql> exit;
Confirm the steps of the configuration and press "Let's go".
Confirmed version