Archive for September, 2007

cgi scripts not working - getting 404 page not found error

Thursday, September 27th, 2007

ok, as you know,

if a perl script is written incorrectly, the error that your browser should show is: Internal Server Error.

So, if you are getting a 404 page not found error on a perl / cgi script…

the problem is going to be one of the following:

1. wrong permissions on the file - cgi scripts must be chmod 755

2. cgi not checked in modify account in WHM

3. httpd.conf virtual host entry may be missing the ScriptAlias entry for cgi-bin - so the server would be trying to use the system cgi-bin instead of the one in the account’s public_html directory.