Criminal#58369
09-04-2005, 10:30 PM
Ok i seen on some sites how they show, Load average php 45% mysql 67% something like this, i cant find out where o get it.
![]() | View Full Version : Looking for this php code. Criminal#58369 09-04-2005, 10:30 PM Ok i seen on some sites how they show, Load average php 45% mysql 67% something like this, i cant find out where o get it. XMG-Eric 09-04-2005, 11:09 PM Perhaps something like PHPsysinfo: http://phpsysinfo.sourceforge.net/ Criminal#58369 09-04-2005, 11:30 PM That dont work on my debian server. anjanesh 09-04-2005, 11:51 PM How is this dependent on the distro of a Linux OS ? Criminal#58369 09-05-2005, 12:06 AM I seen it working on redhat, fedora, and others but wont work on debian :( XMG-Eric 09-05-2005, 12:37 AM What kind of errors are you getting? Criminal#58369 09-05-2005, 01:18 AM http://sysinfo.criminalshosting.com/ XMG-Eric 09-05-2005, 01:12 PM You've got to make sure PHP's safemode is OFF and make sure the php.ini' file's include_path entry contains "." Also, make sure your Php open_basedir Tweak is disabled for the account you're running the scripts on. You can disable this through WHM. anjanesh 09-05-2005, 01:25 PM You've got to make sure PHP's safemode is OFF and make sure the php.ini' file's include_path entry contains "." How can this be done for users not owning a hosting Co but using a package thats shared and does not have access to root ? XMG-Eric 09-05-2005, 01:48 PM Originally posted by anjanesh How can this be done for users not owning a hosting Co but using a package thats shared and does not have access to root ? Unless you have a very flexible webhost who would allow you those 3 things. I'd really doubt you could use this script, or any other script that could show server stats to this extent if you're on a Shared hosting account. It's really mainly for dedicated server owners, becuase it must access alot of files in /proc, etc... and requires safemode and open_basedir to be disabled. Im sure there are other scripts that could work on a shared hosting account to show the basic statistics of the server your on. I'll let you know if i find anything ;) jetson 09-05-2005, 02:35 PM This may or may not work depending on your provider, but I've used similar on a shared hosting no shell wtf was I thinking glad I have a server now account. With a little imagination you might be able to something similar, if not exactly what your talking about. <? $state = `top n1 b`; $state = str_replace(chr(32), ' ', $state); print(nl2br($state)); ?> |