Koozali.org: home of the SME Server

server manager access denied

Offline fastautomation

  • **
  • 31
  • +0/-0
server manager access denied
« on: September 29, 2008, 07:33:02 AM »
Can somebody please assist me, I've been running sme server for a couple of months now and all has been good. When i tried to log into the server manager the other day from ie it says that the page cannot be displayed so i tried to log in through the terminal and i get an access denied message. If anybody knows what could be causing this error please advise. thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server manager access denied
« Reply #1 on: September 29, 2008, 09:26:15 PM »
Can somebody please assist me, I've been running sme server for a couple of months now and all has been good. When i tried to log into the server manager the other day from ie it says that the page cannot be displayed so i tried to log in through the terminal and i get an access denied message. If anybody knows what could be causing this error please advise. thanks
We need some pointers. Did you make configuration changes since last successful access? Did you install other packages?

Did you already try a reboot using
Code: [Select]
signal-event reboot
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline fastautomation

  • **
  • 31
  • +0/-0
Re: server manager access denied
« Reply #2 on: October 06, 2008, 09:48:12 AM »
I have installed other packages, PHP and wordpress. It's been awhile since I used the server manager so I don't know when the last successful login was. If I use IE to get access it shows "page cannot be displayed" and if I use putty and try get in that way it says access denied. Other than that I don't know much more.

Offline fastautomation

  • **
  • 31
  • +0/-0
Re: server manager access denied
« Reply #3 on: October 06, 2008, 09:49:11 AM »
Sorry, I have also tried to restart the system but no success.

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: server manager access denied
« Reply #4 on: October 06, 2008, 11:52:39 AM »
If you install an other version of PHP than the one provided with the distro this could, I think, have the potential of destroying any web server installation. After 7-8 years with e-smith / sme server, (or something like this)  I think I have never had a serious error like this, exept for due to my own unauthorized modifications. Replacing the PHP version is that kind of modification that I would expect could lead to serious problems. (But because of this expectation I have not really tried to upgrade PHP, on SME 7.3, to see that it really did not work.)

If other users have the experience that PHP can easily be upgraded, please leave some info. 

To see if the httpd-admin service is running at all: ps -aux | grep httpd-admin
« Last Edit: October 06, 2008, 12:01:33 PM by arne »
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: server manager access denied
« Reply #5 on: October 06, 2008, 03:21:17 PM »
I have installed other packages, PHP
I guess that is the culprit. you should not upgrade PHP on your server with other versions than released through the official SME Server and CentOS repositories listed in the wiki.
Just some checks:
1. The version of php:
Code: [Select]
php -v2. Installed php related RPMs:
Code: [Select]
rpm -qa | grep php3. Test if the configuration of your httpd-admin server is OK:
Code: [Select]
httpd-admin -t4. Check if the httpd-admin server is up
Code: [Select]
sv s httpd-admin5. Check /var/log/httpd/admin_error_log for errors.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline fastautomation

  • **
  • 31
  • +0/-0
Re: server manager access denied
« Reply #6 on: October 09, 2008, 03:18:30 PM »
I ran all those commands, with the following results.
php -v
PHP 4.3.9 (cgi) (built: sep 20 2007)
httpd-admin -t
syntax error on line 578 of /etc/httpd/conf/httpd.conf:
Invalid command 'criptalias', perhaps misspelled or defined by a module not included in the server configuration
sv s httpd-admin
run: httpd-admin: (pid 4015) 279169s, normally down; run: log (pid 3029) 279189s

All the logs are blank.

I don't know linux well at all but I really need to sort his out so any suggestions would help. Thanks

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: server manager access denied
« Reply #7 on: October 09, 2008, 04:24:02 PM »
Quote
Invalid command 'criptalias'

You need to find what is writing this into httpd.conf.

it seems like it should maybe be ScriptAlias.

http://httpd.apache.org/docs/1.3/mod/mod_alias.html#scriptalias

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: server manager access denied
« Reply #8 on: October 09, 2008, 05:08:11 PM »
You need to find what is writing this into httpd.conf.

He/she also needs to *remove* that from httpd.conf :-)

I suspect (perhaps accidental) use of a text editor.

Code: [Select]
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

might fix the problem. Otherwise the errant template fragment will need to be found and either removed or fixed.

Code: [Select]
grep -r ' criptalias' /etc/e-smith/templates*

might find it. Notice the space after '.