Another problem with PHP scripts without extension
I can't execute PHP file without extension.
Putting SetHandler fastcgi-script in .htaccess makes Apache hang until timeout and i get in the log:
[warn] FastCGI: (dynamic) server "/html/testscript" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
Putting SetHandler php5-fcgi in .htaccess results in error Access denied with 403 error in access log
I tried to add all of the following (one by one) in .htaccess (now I commented them all)
#Action php5-fcgi /php5-fcgi
My apache config is :
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /tmp/php5-fpm.sock -pass-header Authorization
Deny from All
Allow from env=REDIRECT_STATUS
Options ExecCGI FollowSymLinks
I hope in someone's help.
Last edited by pyx69; 22nd February 2012 at 16:56.