[Catalyst] FastCGI permission

Peter Karman peter at peknet.com
Wed Apr 26 23:35:08 CEST 2006


had this error myself this a.m. This line fixed it:

FastCgiIpcDir /tmp/fastcgi

where /tmp/fastcgi had read/write perms for the httpd user.



Christopher Hicks scribbled on 4/26/06 3:14 PM:
> I keep getting this error:
> 
>  	[Wed Apr 26 17:22:14 2006] [error] [client 192.168.0.108] (13)Permission denied: FastCGI: failed to connect to server "/www/dev/html/FINI-IReserve/script/fini_ireserve_fastcgi.pl": connect() failed
>  	[Wed Apr 26 17:22:14 2006] [error] [client 192.168.0.108] FastCGI: incomplete headers (0 bytes) received from server "/www/dev/html/FINI-IReserve/script/fini_ireserve_fastcgi.pl"
> 
> when trying to use FastCGI with this config:
> 
>  	# dev.vhost
> 
>  	FastCgiServer /www/dev/html/FINI-IReserve/script/fini_ireserve_fastcgi.pl -processes 3
> 
>  	<VirtualHost 192.168.0.2:80>
>  	        ServerName dev.plymouth.fini.net
> 
>  	        ErrorLog /var/log/httpd/dev/error.log
>  	        CustomLog /var/log/httpd/dev/access.log common
> 
>  	        DocumentRoot /www/dev/html
> 
>  	        Alias /static /www/dev/html/FINI-IReserve/root/static
> 
>  	        Alias /ire3 /www/dev/html/FINI-IReserve/script/fini_ireserve_fastcgi.pl/
>  	        #ScriptAlias /ire3 /www/dev/html/FINI-IReserve/script/fini_ireserve_cgi.pl/
> 
>  	        # Or, run at the root
>  	        #Alias / /var/www/MyApp/script/myapp_fastcgi.pl/
>  	</VirtualHost>
> 
> Permissions seem fine:
>  	[root at hellonurse script]# ls -l
>  	total 40
>  	-rwxr-xr-x  1 chicks chicks  552 Apr  6 13:31 fini_ireserve_cgi.pl
>  	-rwx------  1 chicks chicks 1837 Apr  6 13:31 fini_ireserve_create.pl
>  	-rwxr-xr-x  1 chicks chicks 1679 Apr  6 13:31 fini_ireserve_fastcgi.pl
>  	-rwx------  1 chicks chicks 2459 Apr  6 13:31 fini_ireserve_server.pl
>  	-rwx------  1 chicks chicks  925 Apr  6 13:31 fini_ireserve_test.pl
> 
> It works fine with the ScriptAlias pointing to the CGI, but the FastCGI 
> version is unhappy.  I can switch to the apache user and run the 
> fastcgi.pl without any permissions denied so I'm really confused as to 
> what permissions are posing a problem.
> 
> Any suggestions?
> 

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list