CGI Problem

goodgirl

Verified User
Joined
Apr 27, 2005
Messages
59
Location
Wheatfield
I have several servers running with DA that are having problems with CGI.

Even trying hello world in the cgi bin I get:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] 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.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

This is happening with 3 servers.

CGI is On. User and group are the same as the User.
 
Have you checked the permissions on the directories and cgi scripts?
 
I know this problem has been brought up before.

Searching these forums, I found these suggestions from DirectAdmin folk:

1) Make sure that the cgi option is enabled for the domain setup in User Panel -> Advanced -> Domain Administration -> CGI
and
1) cgi-bin directory must be 755
2) cgi file must be 755
3) everything must be owned by the user, and not root (or anyone else)

check the /var/log/httpd/suexec_log for more details

If all that fails, try manually running the script:

code:cd /home/username/domains/domain.com/public_html/cgi-bin
./script.cgi

Which will gerally give you why the script wasn't running if all of the above are ok.
Jeff
 
jlasman said:
I know this problem has been brought up before.

Searching these forums, I found these suggestions from DirectAdmin folk:


and

Jeff

Hi Jeff,

Yes we did all that, the script we are testing with is hello world, not a complicated one.

But I will try it and check
check the /var/log/httpd/suexec_log for more details

If all that fails, try manually running the script:

code:cd /home/username/domains/domain.com/public_html/cgi-bin
./script.cgi

now.
 
Back
Top