Nginx : Use PHP Scripts
[1] . After installing PHP, Restart Nginx, it's OK to do it only.
When [Nginx] starts, [php-fpm] also starts for dependency by setting file [/usr/lib/systemd/system/nginx.service.d/php-fpm.conf]. PHP-FPM config file is located at [/etc/nginx/conf.d/php-fpm.conf].
[root@www ~]# systemctl restart nginx
# create PHPInfo test page
[root@www ~]# echo '<?php phpinfo(); ?>' > /usr/share/nginx/html/info.php
[3] . Verify to access to PHPInfo test page from any client computer.
Comments
Post a Comment