Koozali.org: home of the SME Server

Website no longer responding

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Website no longer responding
« on: July 01, 2009, 06:45:59 PM »
Today my website is no longer responding.  I can't find anything in the logs what could explain this. httpd is running.

Can anyone please help me.

thank you


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Website no longer responding
« Reply #1 on: July 01, 2009, 07:28:56 PM »
Today my website is no longer responding.  I can't find anything in the logs what could explain this.
You did have a look at /var/log/httpd/access_log and /var/log/httpd/error_log. They should normally provide clues if there is something wrong with your webserver internally, another thing could be that your provider started blocking port 80/443 on which the http(s) protocols communicate.

httpd is running.

Just to be sure, what is the output of:

Code: [Select]
sv s httpd-e-smith
sv s httpd-admin
« Last Edit: July 01, 2009, 07:30:34 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 gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Re: Website no longer responding
« Reply #2 on: July 01, 2009, 08:21:42 PM »
sv s httpd-e-smith gives the following result:
Quote
down: httpd-e-smith: 1s, want up
and sv s httpd-admin gives:
Quote
run: httpd-admin: (pid 4082) 5984s, normally down; run: log: (pid 2633) 6853s

how to fix it?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Website no longer responding
« Reply #3 on: July 01, 2009, 08:30:51 PM »
sv s httpd-e-smith gives the following result:and sv s httpd-admin gives:
how to fix it?
First check the syntax of your httpd.conf file by using the following command:

Code: [Select]
httpd -t
It most likely will report an error. Post back here so we can help you further.
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 gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Re: Website no longer responding
« Reply #4 on: July 01, 2009, 08:42:59 PM »
httpd -t gives the following:
Quote
Syntax error on line 1728 of /etc/httpd/conf/httpd.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Website no longer responding
« Reply #5 on: July 01, 2009, 08:49:31 PM »
httpd -t gives the following:
Let's find out what is listed there:

Code: [Select]
sed = /etc/httpd/conf/httpd.conf | \
sed 'N; s/^/     /; s/ *\(.\{4,\}\)\n/\1  /' | \
sed -n '1720,1740p'

NB Please use the code block instead of the quote block when pasting screen output, that way it will be preserved in replies from others when quoting.
« Last Edit: July 01, 2009, 08:52:53 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 gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Re: Website no longer responding
« Reply #6 on: July 01, 2009, 08:54:10 PM »
result:

Code: [Select]
1720  AddHandler cgi-script .cgi .pl
  1721  AllowOverride All
  1722  order deny,allow
  1723  deny from all
  1724  allow from all
  1725  php_flag allow_url_fopen on
  1726  php_admin_flag register_globals on
  1727  php_admin_value eaccelerator.enable 0
  1728  php_admin_value open_basedir /opt/joomla:/home/e-smith/files/primary/files/index:/home/e-smith/files/primary/html/phpgedview/index_new:/home/e-smith/files/ibays/outlook/files
  1729  </Directory>
  1730
  1731  Alias /mailinglist "/opt/mailinglist/"
  1732
  1733  <Directory /opt/mailinglist>
  1734      AllowOverride All
  1735      Options +ExecCGI
  1736      AddHandler cgi-script .cgi
  1737      Order deny,allow
  1738      Deny from all
  1739      allow from all
  1740

But that is after i edited a custom template, there was an newline after line 1728 'php_admin_value open_basedir' where line 1729 should directly after 'php_admin_value open_basedir'

Thanks for the help you pointed me in the right direction :grin:
« Last Edit: July 01, 2009, 08:57:54 PM by cactus »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Website no longer responding
« Reply #7 on: July 01, 2009, 09:05:24 PM »
Code: [Select]
  1728  php_admin_value open_basedir /opt/joomla:/home/e-smith/files/primary/files/index:/home/e-smith/files/primary/html/phpgedview/index_new:/home/e-smith/files/ibays/outlook/files
AFAIK open_basedir is for directories and AFAIK they should all end with a trailing slash, which some of yours do not seem to do.

But that is after i edited a custom template, there was an newline after line 1728 'php_admin_value open_basedir' where line 1729 should directly after 'php_admin_value open_basedir'
Thanks a lot, you have us searching for a problem you have caused yourself but did not provide information on ...
Today my website is no longer responding.  I can't find anything in the logs what could explain this.

... but you could have easily figured that out yourself by retracing your tracks... on top off that you did not even have the guts to provide the faulty fragment as to me it seems you pasted the fragment after fixing the error:

Code: [Select]
  1728  php_admin_value open_basedir /opt/joomla:/home/e-smith/files/primary/files/index:/home/e-smith/files/primary/html/phpgedview/index_new:/home/e-smith/files/ibays/outlook/files

Thanks for the help you pointed me in the right direction :grin:
I hope you learned from it, next time please be upfront with all information instead of giving it after we have traced your error... no shame in making mistakes.
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 gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Re: Website no longer responding
« Reply #8 on: July 01, 2009, 10:49:33 PM »
you are absolutely right  :oops:, thank you for the help.