Another problem with PHP scripts without extension
Hello,
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)
<Files testscript>
#ForceType application/x-httpd-php
#Action php5-fcgi /php5-fcgi
#SetHandler fastcgi-script
#SetHandler php5-fcgi
</Files>
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
<Location "/usr/lib/cgi-bin/php5-fcgi">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
Options ExecCGI FollowSymLinks
SetHandler fastcgi-script
</Location>
I hope in someone's help.
Ciao
P
Last edited by pyx69; 22nd February 2012 at 15:56.
|
Recent comments
1 day 4 hours ago
1 day 6 hours ago
1 day 18 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 7 hours ago
2 days 16 hours ago
2 days 18 hours ago
3 days 2 hours ago
3 days 4 hours ago