New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
ServerStatus Prob
Hi,
I have try this: https://github.com/mojeda/ServerStatus on my Webserver:
http://vserv07.neogreen.net/ServerStatus/
But the last 2 graphics.... how could i fix this?
Comments
Yeah I failed it, too.
uptime.dalcomp.info
@mojeda can you enlight us?
Does the server with the uptime.php script have php5?
Can you also see if anything is being shown in your error.log for your webserver?
What OS are you guys running?
Debian 6 Squeeze and newst PHP and lighttpd
I have not tested lighttpd, but have it working on both apache2 + nginx php versions:
PHP Version 5.3.20-1 (dotdeb)
and PHP Version 5.4.11-1 (dotdeb)
and PHP Version 5.4.11-1 (dotdeb)
The last 2 graphics are working on my servers with Nginx/PHP-FPM
Not working on my servers using Nginx forward proxy/Apache backend w/PHP-Fcgi
I haven't tested it yet to see if its the Nginx/Apache proxy combo or the PHP-Fcgi that's causing the error
PHP-FPM and PHP-FCGI are both dotdeb 5.3.22 on all servers, and distro is Debian Squeeze
I use the nginx with php5-fpm with no issues. Sounds more like something is blocking it from running.
This combo didn't work with apache/php-fcgi:
but putting the uptime.php file in the default apache directory does work
I wrote the original...
That said you MUST have php_exec() enabled on the "slaves". Make sure that safemode is set to off in your php.ini
php_admin_value safe_mode off
exec is active otherviese i dont get the Load and im not using safemod.
Why do you use shell_exec when you could be getting the data from /proc/uptime?
@vld - I didn't write that part, this is a modification of my script.
@Neo - Can you paste this into a test.php file on the remote server and pastie the result?
Do you have selinux active?
@BlueVM
http://vserv07.neogreen.net/test.php
Nothing ;P
@Neo - Can you give me a php_info() page?
here: http://vserv07.neogreen.net/info.php
Might this be causing a problem: This server is protected with the Suhosin Patch 0.9.9.1
And that means? i should remove them?
Modify your disable_functions line in php.ini the current settings are preventing this from functioning correctly.
.... i commented them complety out and that dosent helps. I try it before
did you restart apache/nginx/etc after updating the php config ?
Yeah