tinyows icon indicating copy to clipboard operation
tinyows copied to clipboard

how to enable fastcgi?

Open songololo opened this issue 9 years ago • 0 comments

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:

  1. Installed libapache2-mod-fastcgi and enabled it via a2enmod fastcgi;

  2. Installed libfcgi-dev so that the tinyOWS configure process finds the fastcgi headers;

  3. Recompiled TinyOWS using the --with-fastcgi flag;

  4. 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?

  1. 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.

songololo avatar Apr 07 '16 15:04 songololo