|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Perl Problem: Internal Server Error 500
Running Apache 2 (running as a console) on win95 (no other choice right now URL )
Perl/PHP set up according to http://www.apachefreaks.com/forums/index.p...wtopic=3618&hl= localhost/127.0.0.1 apache tests and phpinfo.php work fine, but when I try running the 'hello.cgi' I get an Internal Server Error (500). Error log reads: [Thu May 27 13:07:56 2004] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't create child process: 720002: hello.cgi, referer: http://localhost/ [Thu May 27 13:07:56 2004] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't spawn child process: C:/WINDOWS/DESKTOP/HTML/home/hello.cgi, referer: http://localhost/ The hello.cgi file executes through the command line and its code is: #!/perl/bin/perl print "Content-type:text/html\n\n"; print "Hello, World"; The perl.exe file is located in C:/windows/desktop/html/home/perl/bin Help would be great |
|
#2
|
||||
|
||||
|
I've never run perl on Windows, so this may just be a convention I'm not familiar with, but I would think your first line should reflect the actual path to the perl executable.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
Not a solution
I tried #!c:/windows/desktop/perl/bin/perl.exe and many other path names but I still get the same error (if you recall I stated in my previous msg that the path to perl.exe was c:/windows/desktop/perl/bin/
|
|
#4
|
||||
|
||||
|
Right, you stated that that's what the path to perl was, but the code you provided didn't reflect that path, and you left no indication that you had tried other paths. I can only work with what you give me.
Maybe the issue has to do with a discrepancy between your document root and the actual file path to hello.cgi. |
|
#5
|
|||
|
|||
|
:(
-the documentroot is in the same directory as the perl folder, and that is why in my first post's .cgi file header I reference the location /perl/bin/perl.
Ah well, thanks for all of your help. I am guessing that you have never installed a Apache+Perl on windows 95 (I wouldn't if I had the choice). |
|
#6
|
|||
|
|||
|
Your shebang line is wrong. For windows it is #!C:/PERL/BIN/PERL.EXE
That explains why you can't spawn any child processes. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Perl Problem: Internal Server Error 500 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|