Koozali.org: home of the SME Server

unable to retrieve http://localhost/server-manager

Offline aussierob

  • **
  • 55
  • +0/-0
unable to retrieve http://localhost/server-manager
« on: November 15, 2011, 07:20:34 AM »
After a recent yum update I cannot http to my server:

1. from my laptop I cannot access server-manager (https://192.168.140.99/server-manager)
 or mediawiki (https://192.168.140.99/intranet/doku.php)
(can't establish a connection to the server at 192.168.140.99)
My laptop can ping the server.

2. using putty to ssh to the server, then ssh -ladmin 192.168.140.99
I DO get the menu, and do most things (configure, check internet, check redundant disks)
but try to access server-manager I get
Unable to retrieve http://localhost/server-manager

Could anyone suggest what I check out?

TIA Robert
ps sorry if this turns out to be a DUMB question

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: unable to retrieve http://localhost/server-manager
« Reply #1 on: November 15, 2011, 09:35:43 AM »
I guess your webserver is not running and you need to find out why. What is the output off the following commands:
Code: [Select]
sv s httpd-e-smith
sv s httpd-admin
httpd -t
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 aussierob

  • **
  • 55
  • +0/-0
Re: unable to retrieve http://localhost/server-manager
« Reply #2 on: November 15, 2011, 01:49:07 PM »
Thanks cactus
I have seen your helpfull comments often!
and your pointers have helped me fix it ....


sv s httpd-e-smith
[root@central pfx]# sv s httpd-e-smith
down: httpd-e-smith: 1s, want up

sv s httpd-admin
run: httpd-admin: (pid 3093) 20825s, normally down; run: log: (pid 1780) 20833s

httpd -t
 httpd -t
Syntax error on line 804 of /etc/httpd/conf/httpd.conf:
Invalid command 'RequireSSL', perhaps misspelled or defined by a module not included in the server configuration

the last one is a clue !
as a previous package instal messed up my htttpd.conf

(I cant recall what or I would sound the error bell! - I will check,
but Ive been ill and missing bits of life! )

1. there is 3 or 4
<     allow from 127.0.0.1 192.168.40.0/255.255.255.0
---
>     allow from all

2. BUT checking #804 of the file
is
    RequireSSL on


within
# Administration: phpmyadmin
Alias /phpmyadmin /opt/phpMyAdmin
<Directory /opt/phpMyAdmin>
    RequireSSL on

so stripping the phpmyadmin <Directory> to </Directory>
(which is an old use from 7.?, no longer is use)
all works

Thanks Cactus
Valuable lesson learnt for me
and I hope this helps some other ignorant person
sme rocks due to such help
Robert


ps I keep a copy of a couple of /etc/hosts and the above http.conf for upgrades
(as I have no quite got the hang of them being automatic - not a hacker just not up to speed:
I DO have cron and some bits update organised in the templates!)

pps kiss Centos v SCO - fix the file, no rekernel/reboot and all is well

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: unable to retrieve http://localhost/server-manager
« Reply #3 on: November 15, 2011, 03:12:16 PM »
The RequireSSL is obsolete IIRC and replaced by SSLRequireSSL (http://httpd.apache.org/docs/2.0/mod/mod_ssl.html#sslrequiressl).

You should find the template fragment that is causing the RequireSSL to be inserted as this will be an issue again when your configuration file is regenerated.

To find out which template fragment is causing this please show the output of the following command:
Code: [Select]
grep -R RequireSSL /etc/e-smith/templates{,-custom}/
Make sure that you only delete templates that are in the templates-custom tree, the ones in templates are provided by packages and should be fixed by an update or reported in the bug tracker if no updates are available.
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 aussierob

  • **
  • 55
  • +0/-0
Re: unable to retrieve http://localhost/server-manager
« Reply #4 on: November 15, 2011, 03:49:57 PM »
Thanks Again Cactus,

I do plan to find time to be more familiar with templates.

I have worked on some most important to me (eg cron)
and your advise to me (and others who see this post) is excellent.
(and my grep will be quicker knowing the dir to scan rather than just /)

Sometimes one can just (and should) be grateful for advice provided, and appreciate those who supply it. 8)