From: "Ara.T.Howard" Date: 2003-10-01T04:59:05+09:00 Subject: Re: fastcgi permission error On Tue, 30 Sep 2003, Carl Youngblood wrote: > Okay, so I updated /etc/ls.so.conf and even figured out that I needed to run > /sbin/ldconfig in order to update my changes. I also restarted the httpd > daemon just to make sure that it got those changes as well. However, I'm > still seeing the problem: > > > [Tue Sep 30 11:26:21 2003] [crit] (13)Permission denied: FastCGI: can't > > create (dynamic) server "/var/www/cgi-bin/test.fcgi": bind() failed > > [/etc/httpd/logs/fastcgi/dynamic/35830e69d0669b031643022d74f2d729] [Tue > > Sep 30 11:26:26 2003] [alert] [client 127.0.0.1] (13)Permission denied: > > FastCGI: failed to connect to (dynamic) server > > "/var/www/cgi-bin/test.fcgi": something is seriously wrong, any chance the > > socket/named_pipe directory was removed?, see the FastCgiIpcDir directive > > It may be, as you said, that the web server user (apparently redhat sets up > a user called apache for the web server to run as) can't see the same > library path that I can. However, I can't check since when run: > > sudo su apache -c '/var/www/cgi-bin/test.fcgi < /dev/null' o.k. - assuming it IS a linker problem i have seen this before - but don't know a work around. you probably can't sudo su apache then /var/www/cgi-bin/test.fcgi < /dev/null either? .... other thoughts (debug hacks): * set LD_LIBRARY_PATH in your cgi program BEFORE requiring any libs ENV['LD_LIBRARY_PATH'] = path_to_fcgi_libs * set ENV['LD_DEBUG'] = 'all' ENV['LD_DEBUG_OUTPUT'] = './ld_debug_output' (man ld.so) and try again. this should produce a file 'ld_debug_output' in the same directory as the fcgi program that tells you what loaded/did not load. BE SURE TO HAVE THE FGI PROGRAM AND IT'S DIRECTORY 777 - JUST TO BE SURE. > > It says "This account currently is not available." What's more, even though > my user could not see /usr/local/lib in its library path, it was able to run > the fcgi script from the command line, since ruby-fcgi seems to bypass > fcgi.so when it is running from the command line. > > So, I think I am closer but there is still a problem. i have a redhat 9 machine. i'm setting up fastcgi on it now to try to duplicate your problem... -a ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 | The difference between art and science is that science is what we understand | well enough to explain to a computer. Art is everything else. | -- Donald Knuth, "Discover" | ~ > /bin/sh -c 'for lang in ruby perl; do $lang -e "print \"\x3a\x2d\x29\x0a\""; done' ====================================