[Catalyst] FastCGI permission

Christopher Hicks chicks at chicks.net
Wed Apr 26 22:14:28 CEST 2006


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?

-- 
</chris>

The whole problem with the world is that fools and fanatics are always so
certain of themselves, and wiser people so full of doubts.
             - Bertrand Russell, philosopher, mathematician, author,
               Nobel laureate (1872-1970)



More information about the Catalyst mailing list