Nginxファースト。
そう思っても仕事ではApache+PHP-FPM構成もあったりするのだ。
# firewall-cmd --add-port=80/tcp --zone=public --permanent # firewall-cmd --reload
# yum install -y httpd
systemctl start httpd systemctl enable httpd systemctl status httpd
yum install -y epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum install -y --enablerepo=remi-php56 php php-fpm php-mcrypt php-mbstring php-pdo php-mysql systemctl restart php-fpm systemctl enable php-fpm systemctl status php-fpm
# vi /etc/httpd/conf.d/php-fpm.conf ProxyPassMatch ^(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1 DirectoryIndex /index.php index.php
systemctl restart httpd systemctl status httpd
# vi /var/www/html/index.php <?php phpinfo();
http://<IPアドレス>/
確認
Server API => FPM/FastCGI
確認出来たらOK