Nguon, Vath wrote:
> I am having trouble to get the following perl cgi script to work on an
> AIX Unix system. The browser error message resulted from the script is
> following the program. I appreciate any help in correcting the problem.
Try a simpler script first to make sure it's working.
#!/usr/opt/perl5/bin
print "Content-Type: text/plain\n\n";
print "Hello world\n";
If that works, add this to force your errors back to the browser
or check the error_log to see what caused the error:
use CGI::Carp qw(carpout fatalsToBrowser);
> ================================================
> #!/usr/opt/perl5/bin
> use CGI;
>
> my $q = new CGI;
> print $q->header;
> print $q->start_html(-title=>'CGI Test');
> print $q->hr;
> print $q->h2("CGI Hello world");
> print $q->hr;
> print $q->end_html;
>
> exit 0;
> =================================================
>
>
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs