Click to See Complete Forum and Search --> : internal server error


gokou
06-17-2003, 07:37 PM
I'm trying to get cgi to work with apache because it's the only way to use ccbill. When I access the script, I get an internal server error.

This is the error:

[Tue Jun 17 16:28:28 2003] [error] [client 192.168.1.1] (OS 2)The system cannot find the file specified. : couldn't spawn child process: C:/Apache2/htdocs/main/ccbill/whereami.cgi

I've been trying lots of things int he httpd.conf file. This is the last thing i've tryed. I'm sure it's wrong since i've just been guessing. I read that your suppose to put your files in a cgi-bin dirrrrectory outside the document root and access it by http://domain/cgi-bin/script.cgi. That doesn't make sense though since the cgi-bin directory is outside the document root.

ScriptAlias /cgi-bin/ /c:/apache2/cgi-bin/

<Directory c:/apache2/htdocs/main/ccbill>
Options ExecCGI
AddHandler cgi-script .cgi .pl
Allow from all
</Directory>

Any help is appreciated. I'll keep trying in the mean time.

gokou
06-19-2003, 03:02 PM
Does anyone know the problem to this? I've been stuck on it for 3 days and I can't get anything done without this working.