$ setenforce 0
$ sed -i 's/enforcing/disabled/g' /etc/selinux/config
$ yum install httpd php php-common php-mysqlnd php-mbstring php-gd mariadb-server mod_ssl -y
$ sed -i 's/AllowOverride none/AllowOverride all/g' /etc/httpd/conf/httpd.conf
$ systemctl start httpd && systemctl start mariadb
$ mysql
> CREATE DATABASE wordpress
> GRANT ALL PRIVILEGES ON wordpress.*TO 'wordpress'@'localhost' IDENTIFIED BY '<your password>'
> exit
$ curl -O https://wordpress.org/latest.tar.gz
$ tar zxvf latest.tar.gz
$ mkdir /var/www/html/
$ mv wordpress/* /var/www/html/
$ chown -R apache:apache /var/www/html
$ chmod -R 777 /var/www/html
wp-config.php
define('FSMETHOD', 'direct');