Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: gixmo 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
-
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:
sv s httpd-e-smith
sv s httpd-admin
-
sv s httpd-e-smith gives the following result:
down: httpd-e-smith: 1s, want up
and sv s httpd-admin gives:
run: httpd-admin: (pid 4082) 5984s, normally down; run: log: (pid 2633) 6853s
how to fix it?
-
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:
httpd -t
It most likely will report an error. Post back here so we can help you further.
-
httpd -t gives the following:
Syntax error on line 1728 of /etc/httpd/conf/httpd.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)
-
httpd -t gives the following:
Let's find out what is listed there:
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.
-
result:
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:
-
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:
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.
-
you are absolutely right :oops:, thank you for the help.