Jesus Loves GRASS

Technical blog about GRASS/GIS,open source geoinformatics and MAPSERVER.

Wednesday, January 21, 2009

Error on CGI script

An error like this:
(8)Exec format error: exec of '/usr/local/apache2/cgi-bin/CGI2WPS.py' failed
[Wed Jan 21 09:38:41 2009] [error] [client 127.0.0.1] Premature end of script headers: CGI2WPS.py

Means that the execution of the script failed, probably the server has some problems on getting the python interpreter.

Adding the python location to the script will solve it:

#!/usr/bin/python
#-*- coding: utf-8 -*-

Labels: , ,

2 Comments:

At 21/1/09 7:05 PM, Blogger Andres Herrera said...

pywps ?

 
At 22/1/09 1:30 PM, Blogger Mister Jesus said...

Yes PyWPS 3.0.0

 

Post a Comment

<< Home