FastCGI Error Access to the script denied

I had a similar problem with index.html files which is how I got here from Google. Among other problems, switching from spawn to php-fpm gave most of my domains "Access denied" errors. I got the same "see security.limit_extensions" in my error.log. The affected index.html files didn't have any PHP code either, but I assume NginX still tried to execute them through php-fpm, thus throwing the errors. I'm using CentOS:

  1. Edit /etc/php-fpm.d/www.conf

  2. Uncomment this line, by default .htm and .html are blocked:

security.limit_extensions = .php .php3 .php4 .php5 .html .htm

  1. service php-fpm restart

OTRS is written in Perl, so you cannot run it through PHP-FPM. That's why you get this error. I suggest reading this article for more information about running OTRS with nginx.