After you have installed php you should go about securing php.
One major issue with php.ini file the following entry. Please note, if the line below is commented out AND =0 is NOT specified then the server will default to the value =1
cgi.fix_pathinfo=1You can find this entry in your php.ini with the following command:
grep 'cgi.fix_pathinfo' /etc/php.iniExplanation:
;cgi.fix_pathinfo=1And then add the following:
;cgi.fix_pathinfo=0
The following command can be used to view the value of php-fpm cgi.fix_pathinfo
php-fpm -i 2>&1 | grep 'pathinfo'