sheila
01-10-2001, 02:58 AM
I've had an Apache server installed on my Win98 machine for a short time now. I only run it ocassionally. Anyhow, I finally decided I wanted to fix it so that I could run cgi scripts.
I went through the httpd.conf file and thought I set everything properly. Plus, I thought the docs said that the cgi module is installed by default with Apache.
I can't seem to get my cgi scripts to run, though. I've been trying to run a small python script that I put in my cgi-bin, and I've added Python to the path for my machine. (I checked at the DOS prompt, and typed "path" to make sure.)
So, when I enter the URL for this script,
http://127.0.0.1/cgi-bin/pytestscript.py
I get a 500 Internal Server error. And, when I view the error logs, it states:
"(2)No such file or directory: couldn't spawn child process: e:/apache/cgi-bin/pytestscript.py"
Does anyone have any ideas what may be wrong? Help?
<additional info>
Just to test out whether I could get cgi-scripts to run at all, I created a file list.bat with these contents:
dir
and when I enter
http://127.0.0.1/cgi-bin/list.bat
it gives a directory listing of the cgi-bin directory, so cgi scripts are working. I guess I'm just not invoking python properly? How would one do this on a Windows/DOS system?
</additional info>
[This message has been edited by sheila (edited 01-10-01@02:11 am)]
I went through the httpd.conf file and thought I set everything properly. Plus, I thought the docs said that the cgi module is installed by default with Apache.
I can't seem to get my cgi scripts to run, though. I've been trying to run a small python script that I put in my cgi-bin, and I've added Python to the path for my machine. (I checked at the DOS prompt, and typed "path" to make sure.)
So, when I enter the URL for this script,
http://127.0.0.1/cgi-bin/pytestscript.py
I get a 500 Internal Server error. And, when I view the error logs, it states:
"(2)No such file or directory: couldn't spawn child process: e:/apache/cgi-bin/pytestscript.py"
Does anyone have any ideas what may be wrong? Help?
<additional info>
Just to test out whether I could get cgi-scripts to run at all, I created a file list.bat with these contents:
dir
and when I enter
http://127.0.0.1/cgi-bin/list.bat
it gives a directory listing of the cgi-bin directory, so cgi scripts are working. I guess I'm just not invoking python properly? How would one do this on a Windows/DOS system?
</additional info>
[This message has been edited by sheila (edited 01-10-01@02:11 am)]