how to enable fastcgi?
I have a working implementation of TinyOWS but I am trying to enable fastcgi on Ubuntu 14.04 but I don't believe it is working correctly yet.
I've tried to follow the MapServer page detailing TinyOWS server tuning
What I've done is:
-
Installed
libapache2-mod-fastcgiand enabled it viaa2enmod fastcgi; -
Installed
libfcgi-devso that the tinyOWS configure process finds the fastcgi headers; -
Recompiled TinyOWS using the
--with-fastcgiflag; -
The instructions then say to:
#in your cgi-bin directive, add the following to run all cgi-bin using FastCGI
SetHandler fastcgi-script
Is this referring to the /etc/apache2/conf-enabled/serve-cgi-bin.conf file? If so, I've added the SetHandler line. If not, can someone point me in the right direction?
- The instructions then state to:
#in your FastCGI config file (typically something like /etc/apache2/mods-enabled/fastcgi.conf)
FastCgiServer /usr/lib/cgi-bin/tinyows.fcgi -processes 10
When I add this line I get an error that the file doesn't exist. Based on the tinyOWS installation instructions (the regular instructions, not the server tuning instructions) the compiled file tinyows is meant to be copied to /usr/lib/cgi-bin/tinyows, so I've tried renaming this file to tinyows.fcgi. If this is not correct, is the make process meant to generate such a file and, if so, where does one find it?
I've restarted the server and I am able to query the features, but I don't notice any speed increase, is there something amiss?
Thanks.