Hmm.. that code is missing a " character, also ";" at the end of each line, or maybe you bad copied your perl code...
First of all check that this line: #!/usr/bin/perl (check the marks) is the real path to your perl interpreter ... you can verify doing : which perl the line resulting should be the first line in your perl cgi. Also, for checking the real problem with your cgi program, go to your logs, usually /var/log/httpd/error_log, and read the lines about the error for more information. I hope this information can help. KGS P.S. Also trying to write clear html code is a good idea, you should include body tags . Jianping Zhu wrote: > I have redhat 7.2 and apache server installed, the perl interperator works > fine but I have trouble with cig > > when try to browse http://jianping.dhs.org/cig-bin/contact.cgi > I get following error message: > > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. > Please contact the server administrator, root@localhost 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 > > the contact.cgi is > > # /usr/bin/perl > print "<html>" > print "Anytinng" > print "</html> > exit > > Can somebody give suggestion how to get cgi work. > > -------------------------------- > Jianping Zhu > Department of Computer Science > Univerity of Georgia > Athens, GA 30602 > Tel 706 5423900 > -------------------------------- > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list