image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 25th, 2002, 12:12 PM
Registered User
 
Join Date: Sep 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
blackdognove is on a distinguished road
…guru apache i need (perl_test.cgi internal server error)

Hi people,
i've started apache but have a problem, when test, test-cgi http://127.0.0.1/cgi-bin/test-cgi is all ok, but when test perl_test.cgi…
(i chmod 755 test-cgi and perl_test.cgi)

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

anyone can help me?
Reply With Quote
  #2  
Old September 26th, 2002, 02:53 AM
hunger buster
 
Join Date: Oct 2001
Location: out there... somewhere
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
xegan is on a distinguished road
can you post the perl_test.cgi you are trying to execute?

the test-cgi is not a perl script. you can tell because
that first line doesn't have the path to perl, but to your shell.

#!/bin/sh (vs.)
#!/usr/bin/perl -T (which works for me under 10.2)

so make sure that line is correct.

And you can check out any errors in your log files at
/var/log/httpd/error_log
They might give you a little more info.

Oh, and don't forget this line at the beginning...

print "Content-type: text/html\n\n";

Lastly, make sure your line endings are Unix, not Mac.
BBEdit Lite can do this.

Last edited by xegan; September 26th, 2002 at 03:16 AM.
Reply With Quote
  #3  
Old September 26th, 2002, 08:02 AM
Registered User
 
Join Date: Sep 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
blackdognove is on a distinguished road
hi xegan i don't think the real problem is the path
i've write the simple script in perl
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";
end it work,but the ikonboard test no.
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 500 Internal Server Error mr. k Design & Media 1 October 10th, 2003 03:13 AM
SHUTDOWN without warning SCARY!! astro_sk Mac OS X System & Mac Software 10 May 16th, 2003 02:45 PM
Can't find server after error Ryan81 Networking & Compatibility 0 May 14th, 2003 11:22 AM
apache (ssl?) error with squirrelmail and 10.2.4 QuadrupleJ Design & Media 1 May 1st, 2003 01:19 AM
Apache error jarinteractive Mac OS X System & Mac Software 1 November 2nd, 2001 10:21 AM


All times are GMT -5. The time now is 10:21 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.