[thelist] Apache problem: CGI not working

Anthony Baratta Anthony at Baratta.com
Mon Nov 27 15:26:39 CST 2000


Minh Lee Goon wrote:
> 
> I've got a simple "Hello World" in my cgi-bin but the page only displays
> an Internal Server Error. What do I need to do to make sure the page
> works? Does the extension of the file matter (i.e. .cgi, .pl etc)?

Check list:

 1 - Is your shebang correct?  

	#!/usr/bin/perl <- machine specific

 2 - Are your file permissions correct? 

	chmod 755 <filename>

 3 - Are you outputting the content type first?  

	print "Content-type: text/html\n\n";

 4 - Note the "2" returns. This is required.

 5 - Does the program run from a command line?

 6 - Did you upload the file as ASCII versus Binary?

-- 
Anthony Baratta
President
KeyBoard Jockeys
                    South Park Speaks Version 3 is here!!!
                       http://www.baratta.com/southpark
                              Powered by Tsunami




More information about the thelist mailing list