PDA

View Full Version : [kubuntu] Apache/CGI-Perl/Kubuntu


ksparkman
June 2nd, 2008, 10:24 PM
I dont know if i choose the right categorie to post this, So please excuse.


I am running Kubuntu with Apache2.

I have a cgi script in the /cgi-bin/ folder.

apache has the /cgi-bin/ script alias setup in the httpd.conf

however, when you go to the cgi script ex..

http://192.168.1.240/cgi-bin/email.cgi it says 404 not found.

now if you go to

http://192.168.1.240/cgi-bin/ you get a forbidden,

and [YES] the email.cgi is in the cgi-bin folder.

ksparkman
June 3rd, 2008, 01:06 PM
Ok so i opened up the /var/log/apache2/error.log

and this is what it stated:
[Tue Jun 03 12:59:42 2008] [error] [client 74.212.210.131] (2)No such file or directory: exec of '/usr/lib/cgi-bin/email.cgi' failed, referer: http://www.commercial-lighting.net/autho/
[Tue Jun 03 12:59:42 2008] [error] [client 74.212.210.131] Premature end of script headers: email.cgi, referer: http://www.commercial-lighting.net/autho/


so I put the email.cgi in the /usr/lib/cgi-bin/ in the directory..

and I still get the same thing.

Sef
June 3rd, 2008, 07:20 PM
Moved to server platforms.