View Single Post
  #4  
Old 22nd February 2012, 15:34
pyx69 pyx69 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote