Another thing you'll want to check is your path to perl (the first line).
For example, when I run a script on windows, I must change the path to
e:/perl/bin/perl.exe - because that's my path to my perl executable.

-- 
Erich Musick
http://erichmusick.com


"Rob Hanson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The message you see in the browser usually means very little, and doesn't
> help much.  Check your web server's error logs to see the real error.
>
> If you are getting that error you can be pretty sure that your web server
is
> at least trying to execute the script.  So after checking your logs, I
would
> check the following in this order:
>
> 1. Is the script executable (chmod +x)
> 2. Can your web server user execute perl.
> 3. Can your web server user read and exec your script.
>
> If you have root access you can try su'ing to that user and attempt to run
> the script.  That would eliminate all of the above.
>
> Rob
>
> -----Original Message-----
> From: David Glucksman [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 15, 2003 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: cgi error
>
>
> Hello everyone,
>
> I am new to Perl and CGI so I need some help. I have a
> simple cgi script:
>
> #!/usr/bin/perl
>
> print "Content-type: text/html\n\n";
>
> print "This is my first CGI application";
>
>
> I save the script using the .cgi nameing convention. I
> can run the script from unix with no errors but when I
> try to run it in a browser I get:
>
> Internal Server Error
> The server encountered an internal error or
> misconfiguration and was unable to complete your
> request.
>
> I must be missing something obvious.
> Any suggestions?
> Thanks
> David
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to