On Mon, 4 Jul 2005, Aditi Gupta wrote:

> 
> I'm very new to CGI programming. I'm working with following:
> Browser: Mozilla Firefox
> Server: Apache 2.0.54
> OS: Windows XP 
> 
> I'm going through the following online tutorial for cgi: 
> http://www.cgi101.com/book/
> 
> The 1st cgi code that I wrote is as follows:
> 
> first.cgi
> ---------------------------------------------------------------------------------------------
> #!perl/bin/perl -wT
> use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
> print " Content-type : text/html\n\n"; 
> print "Hello World!\n";
> ---------------------------------------------------------------------------------------------
> But when I write 'http://localhost/~P4/first.cgi' in the browser location 
> window (P4 is my username), it said "Internal Server Error". I'm working on 
> my personal computer. The tutorial says that it might happen because I 
> haven't changed file permissions using 'chmod 755 filename'. But there is no 
> chmod command in Windows XP. Also, if I don't want to change file 
> permission, will the code not be executed?





I would assume that your web server has a log that can be accessed.

Please check that and see what is reported there.

Do you have the #!perl/bin/perl  line correctly referenced, ie, where is
your perl and then make sure that the shebang line points to the right
perl 



Owen 




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to