Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to enable fastcgi? #88

Open
songololo opened this issue Apr 7, 2016 · 0 comments
Open

how to enable fastcgi? #88

songololo opened this issue Apr 7, 2016 · 0 comments

Comments

@songololo
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant