Cgi

malinrepair

Verified User
Joined
Jun 21, 2005
Messages
20
Location
Eastern Shore of Maryland, United States
OK, whenever I run CGI files I get this error:

Internal Server Error
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.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at www.malinrepair.com Port 80
 
Have the cgi files been uploaded as ascii rather than as binary? (Note that the file upload utility built into DA may only upload as binary.)

Has the admin allowed cgi for the reseller?

Has the reseller allowed cgi for the user?

Has the user set up his account for cgi?

Are the cgi files in the cgi-bin directory under the public_html directory?

Have you tested to see if the cgi files work from the command line?

Have you tested to see if the cgi files work in the /var/www/cgi-bin directory (that directory is addressable from the web using the main IP# of the server as: http://aa.bb.cc.dd/cgi-bin/cgi-file-name)

After all these tests show no solution look at the per domain httpd error logs to more specific error messages.

Jeff
 
Nagios works fine on DA servers; we install it on DA servers for our clients.

You haven't answered any of my questions so I can't help you further.

Jeff
 
Has the admin allowed cgi for the reseller?
Its not a reseller.

Has the reseller allowed cgi for the user?
How?

Has the user set up his account for cgi?
How?

Are the cgi files in the cgi-bin directory under the public_html directory?
Nagios doesn't have a Public_HTML directory.

Have you tested to see if the cgi files work from the command line?
How?
 
OK, I think I found the error, but how do I fix it?

[2005-06-24 22:55:27]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 16:55:58]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: tac.cgi
[2005-06-26 16:55:58]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 16:55:59]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 16:55:59]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 16:56:00]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 16:56:00]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 16:56:01]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: statuswrl.cgi
[2005-06-26 16:56:01]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 16:56:02]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 16:56:02]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 16:57:39]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: config.cgi
[2005-06-26 16:57:39]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:08:49]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: tac.cgi
[2005-06-26 17:08:49]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:08:51]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 17:08:51]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:08:52]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 17:08:52]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:08:56]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: extinfo.cgi
[2005-06-26 17:08:56]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:14:49]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: tac.cgi
[2005-06-26 17:14:49]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:14:51]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 17:14:51]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:14:53]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: outages.cgi
[2005-06-26 17:14:53]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:14:54]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: status.cgi
[2005-06-26 17:14:54]: error: directory is writable by others: (/usr/local/nagios/sbin)
[2005-06-26 17:15:48]: info: (target/actual) uid: (admin/admin) gid: (admin/admin) cmd: statusmap.cgi
[2005-06-26 17:15:48]: error: directory is writable by others: (/usr/local/nagios/sbin)
 
malinrepair said:
OK, I think I found the error, but how do I fix it?

[2005-06-24 22:55:27]: error: directory is writable by others: (/usr/local/nagios/sbin)
Not that in the example below "#" is not something you type; it's the root prompt, and it indicates that you do what I write as root. Remember I bear no responsibility for anything you do on your server.

# cd /usr/local/nagios/
# chmod o-w sbin

and that should solve the problem.

Jeff
 
Back
Top