Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 27th, 2004, 12:55 PM
znoopy12345 znoopy12345 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 znoopy12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old May 27th, 2004, 02:53 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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.

Reply With Quote
  #3  
Old May 28th, 2004, 09:38 AM
znoopy12345 znoopy12345 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 znoopy12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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/

Reply With Quote
  #4  
Old May 28th, 2004, 12:47 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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.

Reply With Quote
  #5  
Old June 1st, 2004, 10:31 AM
znoopy12345 znoopy12345 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 znoopy12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
:(

-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).

Reply With Quote
  #6  
Old June 6th, 2004, 12:34 PM
Matrix28 Matrix28 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 23 Matrix28 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Your shebang line is wrong. For windows it is #!C:/PERL/BIN/PERL.EXE
That explains why you can't spawn any child processes.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Perl Problem: Internal Server Error 500


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway