Apache CGI - Internal server error

If none of the more specific forums is the right place to ask

Apache CGI - Internal server error

Postby gszabo » 2015-09-30 20:08

Hello !

I know it is a tipical issue, but i can get over it....
I installed debian 7 and apache 2.2 with virtualhosts. I'd like to run CGI, but always get internal server error. i tested it with a simple test.cgi file.

I got this in apache error log.
Wed Sep 30 21:39:02 2015] [error] [client 192.168.0.156] Premature end of script headers: test.cgi

When is switch off "Addhandler cgi-script .cgi" in the config file i see the code. Permissions are 755 on the whole directory.

I have checked a2enmod, the modul is loaded (sudo a2enmod cgi)

Could you help me what else can i check to solve this problem?

here are the part of config files :

ScriptAlias /gestioip "/var/www/gestioip"

<Directory "/var/www/gestioip">
AddHandler cgi-script .cgi
AddDefaultCharset utf8
DirectoryIndex index.cgi
Options ExecCGI MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>

thank you
gszabo
 
Posts: 3
Joined: 2015-09-29 21:11

Return to General Questions

Who is online

Users browsing this forum: cosmoff and 4 guests

fashionable