[Benchmarking] MapServer and FastCGI
Frank Warmerdam
warmerdam at pobox.com
Mon Sep 7 19:05:04 EDT 2009
Folks,
I succeeded in doing port forward to access the apache on the
benchmarking system from the outside world. For me it is:
ssh -l fwarmerdam -p 2221 64.222.187.168 -L 8081:localhost:80
My next step is to get fastcgi support working. I see that mapserv
is already built with fastcgi support, but the new RedHat install does
not include fastcgi enabling. I successfully copied the already built
mod_fastcgi.so into the modules directory and added some config stuff
per:
http://www.mapserver.org/optimization/fastcgi.html
in /etc/httpd/conf/httpd.conf.
However, when I restart apache and make a fastcgi request I get:
[Mon Sep 07 18:55:22 2009] [crit] (13)Permission denied: FastCGI: can't create
(dynamic) server "/var/www/cgi-bin/mapserv.fcgi": bind() failed
[/etc/httpd/logs/fastcgi/dynamic/21101a51ad85e2f709e90c65b23e7e6a]
[Mon Sep 07 18:55:27 2009] [alert] [client 127.0.0.1] (13)Permission denied:
FastCGI: failed to connect to (dynamic) server "/var/www/cgi-bin/mapserv.fcgi":
something is seriously wrong, any chance the socket/named_pipe directory was
removed?, see the FastCgiIpcDir directive
[Mon Sep 07 18:55:27 2009] [error] [client 127.0.0.1] FastCGI: incomplete
headers (0 bytes) received from server "/var/www/cgi-bin/mapserv.fcgi"
I have created the /etc/httpd/logs/fastcgi directory and the dynamic
subdirectory and made them permission 777 but still I have a problem.
I presume there is some extra layer of security interfering. Any ideas?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Benchmarking
mailing list