This is guide howto install Nginx with PHP 7.2.0 and PHP-FPM on Fedora 27/26/25, CentOS 7.4/6.9 and Red Hat (RHEL) 7.4/6.9. PHP-FPM is easier to use and configure than FastCGI and some tests says that PHP-FPM is even much more efficient than FastCGI.

Nginx (engine x) is a robust, small and high performance http server, reverse proxy server and also mail proxy server.

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

 

Install Nginx/PHP-FPM on Fedora 28/27, CentOS/RHEL 7.5/6.9

 

 

Note:
If you get 403 forbidden error, then you probably have problem with SELinux, then run simply following command:

chcon -R -t httpd_sys_content_t /srv/www/testsite.local/public_html

## Or some apps might need httpd_sys_rw_content_t ##
chcon -R -t httpd_sys_rw_content_t /srv/www/testsite.local/public_html

카테고리: Tech

댓글 남기기