Koozali.org: home of the SME Server

httpd Issue

Offline Graham

  • ****
  • 105
  • +0/-0
httpd Issue
« on: November 06, 2008, 12:10:56 PM »
Been running Cacti and PHPMyAdmin Contrib on our SME Server for a while now until Tuesday when it broke, we can no longer login to PHPMyAdmin or Cacti after providing our user details Firefox reports:

Redirection limit for this URL exceeded. Unable to load the requested page.  This may be caused by cookies that are blocked.

I’ve removed Cacti and PHPMyAdmin and installed them again and there still not working; I’ve grabbed this from the httpd log.

domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:30 +0000] "GET /cacti HTTP/1.1" 301 231 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:30 +0000] "GET /cacti/ HTTP/1.1" 200 1189 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/images/auth_login.gif HTTP/1.1" 302 234 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/images/auth_login.gif HTTP/1.1" 302 240 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 246 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 252 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 258 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 264 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 270 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 276 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 282 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 288 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 294 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd Issue
« Reply #1 on: November 06, 2008, 03:40:21 PM »
I’ve removed Cacti and PHPMyAdmin and installed them again and there still not working; I’ve grabbed this from the httpd log.

domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:30 +0000] "GET /cacti HTTP/1.1" 301 231 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"
That is the access.log and won't tell us what went wrong. Try the error_log file and see if that gives any clues.
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 Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #2 on: November 06, 2008, 04:04:45 PM »
Nothing in the error log at the time of the page load, only have this:

[Wed Nov 05 15:57:20 2008] [warn] RSA server certificate CommonName (CN) `sme.domain.dyndns.org' does NOT match server name!?
[Wed Nov 05 15:57:20 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 05 15:57:20 2008] [notice] Digest: done
[Wed Nov 05 15:57:21 2008] [warn] RSA server certificate CommonName (CN) `sme.domain.dyndns.org ' does NOT match server name!?
[Wed Nov 05 15:57:21 2008] [notice] Apache configured -- resuming normal operations

Looking at the access log you see this, /cacti/cacti/cacti/cacti/ ?

domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 264 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd Issue
« Reply #3 on: November 06, 2008, 04:14:50 PM »
Quote from: sprattgraham link=topic=42532.msg200571#msg200571
Looking at the access log you see this, /cacti/cacti/cacti/cacti/ ?

domain-name.org 10.0.1.248 - - [05/Nov/2008:16:02:31 +0000] "GET /cacti/cacti/cacti/cacti/cacti/cacti/images/auth_login.gif HTTP/1.1" 302 264 "https://10.0.1.1/cacti/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)"

No, nor can I explain it. Strange behavior indeed.
« Last Edit: November 06, 2008, 04:16:22 PM by cactus »
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 Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #4 on: November 06, 2008, 04:30:56 PM »
If I create an ibay called testphp and copy the phpmyadmin files from /opt/phpmyadmin to the ibay it works fine?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd Issue
« Reply #5 on: November 06, 2008, 04:40:56 PM »
If I create an ibay called testphp and copy the phpmyadmin files from /opt/phpmyadmin to the ibay it works fine?
I doubt it, but you could try off course.
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 Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #6 on: November 06, 2008, 04:44:26 PM »
I doubt it, but you could try off course.

Sorry don't think you got that, what I was saying is that’s what I've done and phpmyadmin works ok when created as an ibay.

I created an ibay called testphp and them moved the /opt/phpmyadmin files to the ibay HTML folder and it works.

Question why there but not when the files are located here /opt/phpmyadmin
« Last Edit: November 06, 2008, 04:47:08 PM by sprattgraham »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd Issue
« Reply #7 on: November 06, 2008, 07:11:57 PM »
Sorry don't think you got that, what I was saying is that’s what I've done and phpmyadmin works ok when created as an ibay.

I created an ibay called testphp and them moved the /opt/phpmyadmin files to the ibay HTML folder and it works.

Question why there but not when the files are located here /opt/phpmyadmin
Most likely the templates for the webserver are incorrect or missing and the directory holding phpmyadmin is not (correctly) exposed to the net.
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 Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #8 on: November 06, 2008, 07:16:15 PM »
Ok then what should I do to fix it, what permissions are needed.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: httpd Issue
« Reply #9 on: November 06, 2008, 07:58:12 PM »
Been running Cacti and PHPMyAdmin Contrib on our SME Server for a while now until Tuesday when it broke, we can no longer login to PHPMyAdmin or Cacti after providing our user details Firefox reports:


what happened tuesday? anything in your log? did you change/install something?

Ciao
Stefano

Offline Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #10 on: November 06, 2008, 08:03:41 PM »
Think it was late Monday I remember installing these updates, following morning Cacti didn't work.

Nov 03 23:20:51 Updated: lynx.i386 2.8.5-18.2.el4_7.1
Nov 03 23:20:51 Updated: ed.i386 0.2-36.el4_7.1

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd Issue
« Reply #11 on: November 07, 2008, 09:08:17 AM »
Think it was late Monday I remember installing these updates, following morning Cacti didn't work.

Nov 03 23:20:51 Updated: lynx.i386 2.8.5-18.2.el4_7.1
Nov 03 23:20:51 Updated: ed.i386 0.2-36.el4_7.1
Are you sure those are the only ones? AFAIK they have nothing todo with cacti nor phpmyadmin.
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 Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #12 on: November 07, 2008, 01:23:44 PM »
I'm sure, got that from the YUM log the only other updates where done on the 23rd October and cacti and phpmyadmin was working fine after them.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: httpd Issue
« Reply #13 on: November 07, 2008, 02:24:11 PM »
I'm sure, got that from the YUM log the only other updates where done on the 23rd October and cacti and phpmyadmin was working fine after them.
Which repositories do you have configured and enabled
Code: [Select]
db yum_repositories print | sed 's/=.*|status|/: /;s/|.*//'
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 Graham

  • ****
  • 105
  • +0/-0
Re: httpd Issue
« Reply #14 on: November 07, 2008, 02:38:10 PM »
addons: disabled
atrpms=repository

base: enabled
centosplus: disabled
contrib: disabled
dag: disabled
extras: disabled
smeaddons: enabled
smecontribs: disabled
smedev: disabled
smeos: enabled
smetest: disabled
smeupdates: enabled
smeupdates-testing: disabled
updates: enabled