Terrabit Host Posted February 6, 2009 Share Posted February 6, 2009 Hi, i recently moved over to a new dedicated server and re-installed whmcs only this time to find that the status script doesnt show the uptime just 0 Days 00:00:00 and just says not available for server load, any ideas why it would be doing this? Any help would be appreciated. it can been seen here: http://billing.terrabithost.com/serverstatus.php and here: http://status.terrabithost.com Thanks 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted February 7, 2009 Share Posted February 7, 2009 Hi, i recently moved over to a new dedicated server and re-installed whmcs only this time to find that the status script doesnt show the uptime just 0 Days 00:00:00 and just says not available for server load, any ideas why it would be doing this? Any help would be appreciated. it can been seen here: http://billing.terrabithost.com/serverstatus.php and here: http://status.terrabithost.com Thanks I saw the same thing recently on one of my servers. Take a look at the http error logs on the system you are trying to get the uptime from. I saw an error in mine that looked like: sh: line 1: /uptime: No such file or directory I haven't figured out the best way to deal with this, but essentially something is preventing php from using the full path to the uptime command. I think it might be related to safe_mode being on, but I haven't had enough time to investigate. -Eric 0 Quote Link to comment Share on other sites More sharing options...
osCommerce Posted February 7, 2009 Share Posted February 7, 2009 I turned safe mode off on the domain and it worked. Not the best solution but it works for now. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted February 7, 2009 Share Posted February 7, 2009 Safe mode should be off anyway 0 Quote Link to comment Share on other sites More sharing options...
Terrabit Host Posted February 7, 2009 Author Share Posted February 7, 2009 ok ill look thanks 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted February 7, 2009 Share Posted February 7, 2009 Safe mode should be off anyway Safe Mode off, yes, I agree. 0 Quote Link to comment Share on other sites More sharing options...
Terrabit Host Posted February 21, 2009 Author Share Posted February 21, 2009 yep this done the trick thanks 0 Quote Link to comment Share on other sites More sharing options...
Terrabit Host Posted March 21, 2009 Author Share Posted March 21, 2009 Ok so this issue has re-appeared but as im running Windows im not sure what has caused it, as php safe mode is off you can see it here: http://www.terrabithost.com/client/serverstatus.php 0 Quote Link to comment Share on other sites More sharing options...
simplybe Posted March 21, 2009 Share Posted March 21, 2009 (edited) If your php has been secured by disabling some functions then the status script won't work. Check your php.ini and see what functions are disabled. look for disable_functions = The script doesn't work on any of my servers because of this but I would rather keep the functions disabled and not use the status page. I prefer to allow customers to do a realtime check on their domain name with something like this. <? error_reporting(0); if ( $domain !="" ) { function lookup_ports($hport,$who) { $fp=fsockopen($who, $hport,$errno,$errstr, 4); if (!$fp){ $data="<font color=red>".Failed."</font>"; } else { $data="<font color=green>".OK."</font>"; fclose($fp); } return $data; } echo "<li><b>Results for $domain on the: "; echo date("dS F Y"); echo "<P><BR></P>"; echo "<li><b>HTTP Web Server:</b> <i>Current Status=<b>".lookup_ports("80",$domain)."</b></i></li>\n"; echo "<P><BR </P>"; echo "<li><b>FTP Server:</b> <i>Current Status=<b>".lookup_ports("21",$domain)."</b></i></li>"; echo "<P><BR </P>"; echo "<li><b>SMTP - Outgoing Mail Server:</b> <i>Current Status=<b>".lookup_ports("26",$domain)."</b></i></li>"; echo "<P><BR </P>"; echo "<li><b>POP3 - Incoming mail Server:</b> <i>Current Status=<b>".lookup_ports("110",$domain)."</b></i></li>"; echo "<P><BR </P>"; ;} ?> Include that in a form and pass the domain using submit Edited March 21, 2009 by simplybe 0 Quote Link to comment Share on other sites More sharing options...
simplybe Posted March 21, 2009 Share Posted March 21, 2009 Also check this alternative script http://www.sillydns.com/index.php?title=StatusMon 0 Quote Link to comment Share on other sites More sharing options...
Terrabit Host Posted April 10, 2009 Author Share Posted April 10, 2009 ok so im back on linux now, safe mode is off however i still have a issue with the status script not showing it can be seen here http://my.terrabithost.co.uk/serverstatus.php 0 Quote Link to comment Share on other sites More sharing options...
Chow Posted May 10, 2009 Share Posted May 10, 2009 Can I ask you how you solved it?? I have the same problem. Plus phpinfo gives a 404. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.