now this i know... your script needs a few minor changes: #!/usr/bin/perl # notice the "!" after the "#" print "Content-type: text/html\n\n"; # notice the "\n\n" ...that represents two # new lines, so that the server can see # the line between content and header info. print "<html>"; # all lines in perl have to have a ";" at the end print "Anytinng"; print "</html>"; # and you have to close any quotes you open # and you don't need an exit command.
also, you may want to check the file on the server and make sure it's got its permissions set to "755". read this for more information: http://www.oreilly.com/catalog/lperl3/ as well as this: http://httpd.apache.org/docs/mod/mod_alias.html#scriptalias good luck! _________________________________ daniel a. g. quinn starving programmer every gun that is made, every warship launched, every rocket fired signifies in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. this world in arms is not spending money alone. it is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. this is not a way of life at all in any true sense. under the clouds of war, it is humanity hanging on a cross of iron. - dwight Eisenhower, april 16, 1953 ----- Original Message ----- From: "Jianping Zhu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 2:51 PM Subject: How to get CGI work > 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