パッケージのインストール
yum install httpd php php-mysqlnd mariadb-server
httpd, php
mkdir -p /var/log/httpd/
mkdir -p /var/www/html/
echo "<?php echo 'hoge'; ?>" > /var/www/html/index.php
apachectl -S
systemctl start httpd
systemctl enable httpd
mariadb
/etc/my.cnf.d/server.cnf
[mysqld]
+ character-set-server = utf8
systemctl start mariadb
systemctl enable mariadb
mysql -uroot
MariaDB [(none)]> status
...
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
...