Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: edb on October 04, 2004, 10:07:54 PM
-
Just did a restore from desktop. Everything appears fine, Web, Mrtg,etc. but I cannot access server manager. I get the following error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin 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.
Any ideas? Thanks
Ed
-
Everything appears to be working but the email functions and my access to the Server Manager.
Server Manager prompts for a login but then errors out with the "internal server error".
If I try to send an email I get the following:
Undeliverable: can you please forward me the ...
Your message did not reach some or all of the intended recipients.
Subject: RE: can you please forward me the ...
Sent: 10/4/2004 4:00 PM
The following recipient(s) could not be reached:
'XXX XXX' on 10/4/2004 4:00 PM
None of your e-mail accounts could send to this recipient.
Something is obveously broke but the question is what? :cry:
Thanks for any input.
Ed
-
Ed,
Ceck the contents of:
/var/log/httpd/admin_error_log
One similar thread here:
http://forums.contribs.org/index.php?topic=21692.0
Craig Jensen
-
Ok
Everything other than accessing Server Manager is now fixed including email. The email problem was the old RBL list thing, once I removed the offending RBLs and rebooted the mail was working again. :-D
The only remaining problem is accessing the server manager and I can't seem to find a resolve to that one. :cry:
-
Here are the results from the /var/log/httpd/admin_access_log
127.0.0.1 - - [05/Oct/2004:08:32:50 -0500] "GET /e-smith-manager/ HTTP/1.1" 401 560
127.0.0.1 - admin [05/Oct/2004:08:32:51 -0500] "GET /e-smith-manager/ HTTP/1.1" 500 693
Here are the results from the /var/log/httpd/admin_error_log
[Tue Oct 5 08:32:51 2004] [error] (13)Permission denied: exec of /etc/e-smith/web/panels/manager/html/index.cgi failed
[Tue Oct 5 08:32:51 2004] [error] [client 127.0.0.1] Premature end of script headers: /etc/e-smith/web/panels/manager/html/index.cgi
-
Here are the results from the /var/log/httpd/admin_access_log
127.0.0.1 - - [05/Oct/2004:08:32:50 -0500] "GET /e-smith-manager/ HTTP/1.1" 401 560
127.0.0.1 - admin [05/Oct/2004:08:32:51 -0500] "GET /e-smith-manager/ HTTP/1.1" 500 693
Here are the results from the /var/log/httpd/admin_error_log
[Tue Oct 5 08:32:51 2004] [error] (13)Permission denied: exec of /etc/e-smith/web/panels/manager/html/index.cgi failed
[Tue Oct 5 08:32:51 2004] [error] [client 127.0.0.1] Premature end of script headers: /etc/e-smith/web/panels/manager/html/index.cgi
Check the permissions of /etc/e-smith/web/panels/manager/html/index.cgi
They should be:
owner=root
group=root
permissions=777
-
That is what index.cgi already reads for permissions.
Thanks
-
That is what index.cgi already reads for permissions.
Thanks
Now Check the permissions of /etc/e-smith/web/functions/index.cgi
They should be:
owner=root
group=admin
permissions=104750
set user ID on execution
owner=read, write, execute
group=read, execute
-
Update ...
you sort of pointed me in the right direction though BobK
I've found the resolve to this issue in the path /etc/e-smith/web/functions it appears that all of the files in the functions folder had there permissions changed to Group=101 Owner=root Permissions=4750
Once I changed the permissions here to be root,root,0777 everthing is now working just the way it should be. :-D
What a wierd glitch eh? Any way thanks for the help.
Ed
-
Just for any of you that run into the same issue regarding access to the server manager after a restore from desktop that went south, here are the permissions that should be set on all of the files in the /etc/e-smith/web/functions directory:
Note that not all are "4750" Group & Owner should be "root"
awstats - 4750
backup - 4750
datetime - 4750
directory - 4750
domains - 4750
emailsettings - 4750
groups - 4750
hostentries - 4750
ibays - 4750
index.cgi - 0777
initial.cgi - 0777
localnetworks - 4750
mailblocking - 4750
navigation - 0777
noframes - 0777
online manual - 4750
pleasewait - 0777
portforwarding - 4750
printers - 4750
pseudonyms - 4750
qmailanalog - 4750
quota - 4750
reboot - 4750
reinstall - 4750
remoteaccess - 4750
review - 4750
spamfilter - 4750
starterwebsite - 4750
support - 4750
useraccounts - 4755
userpanelaccess - 4750
userpanel-autoreply - 4750
userpanel-forwarding - 4750
userpanel-initial - 4750
userpanel-navigataion - 4750
userpanel-noframes - 4750
userpanel-password - 4750
userpanel-procmail - 4750
userpanel-procmail.orig - 4750
userpanel-userbackup - 4750
userpanel-vacation - 4750
uservacations - 4750
viewlogfiles - 4750
workgroup - 4750
Hope that this will help someone else cause it sure drove me nuts!!!
-
Ok, i did something really stupid...:P
I was trying to overcome this problem of executing a .cgi file from the cgi-bin folder, and so i tried the suggestion above.
However, my experience with setting permissions isn't all that comprehensive.
I went to:
/etc/e-smith/web/functions and issued: "chown root *"
Now i can't use the second tier of my server-manager. As soon as a request a log, or try to change a setting, i get a server error. Any advise on how to fix this?
Tristan
P.S.My apologies for creating this mess for myself...
-
chown root:root *
may be better
see
man chown
-
Thanks Ray,
Everything is fine again, still no go on with cgi scripts though...
I did what you said, then did the following also, i wanted to make everything back to the way it was originally, some of the below may not have been required.
chown root:root *
chmod 4750 *
chmod index.cgi - 0777 *
chmod initial.cgi - 0777 *
chmod navigation - 0777 *
chmod noframes - 0777 *
chmod pleasewait - 0777 *
then followed bobk's advice in his posts above.
Ahhh, curse my eternal tampering with SME...
Thanks for the help!
Tristan