PingEx.com Posted April 14, 2009 Share Posted April 14, 2009 Im looking to display the server uptime on my server /whmcs shell_exec is disabled, and ive tried using the get_file_contents from /proc/uptime but having a open_dir restriction error Is there any other options? Running cpanel David 0 Quote Link to comment Share on other sites More sharing options...
Interdit Posted April 14, 2009 Share Posted April 14, 2009 (edited) Same here: http://new.b-powers.be/clients/serverstatus.php Phpinfo link broken and no load or uptime info. Thanks, Francois EDIT: working by putting this file: http://forum.whmcs.com/showpost.php?p=88039&postcount=3 Where can I find the original V4RC2 /status/index.php file ? Edited April 14, 2009 by Interdit 0 Quote Link to comment Share on other sites More sharing options...
SRobinson Posted April 14, 2009 Share Posted April 14, 2009 Ive attatched the serverstatus.php file which goes in the root directory (Just rename it to .php rather than .txt!).. There didnt seem to be a status/index.php file for V4RC2. (Unless i didn't quite understand what you were after!) serverstatus.txt 0 Quote Link to comment Share on other sites More sharing options...
Interdit Posted April 14, 2009 Share Posted April 14, 2009 I was looking for the url to put in the server configuration to have the server status page working. I thought I add to create a directory ./statut/ and put a script in there. Thanks, Francois 0 Quote Link to comment Share on other sites More sharing options...
PingEx.com Posted April 14, 2009 Author Share Posted April 14, 2009 im getting 0 Days 00:00:00 using that I think its cos we have shell_exec disabled for the security reasons. Im trying to make a work around will post here if anything found David 0 Quote Link to comment Share on other sites More sharing options...
SRobinson Posted April 14, 2009 Share Posted April 14, 2009 Surley there's a better way of implementing into WHMCS as im sure many have shell_exec disabled for security? 0 Quote Link to comment Share on other sites More sharing options...
PingEx.com Posted April 14, 2009 Author Share Posted April 14, 2009 im trying to figure something out the other option ive found is get_file_contents but that doesnt work since the base_dir restrictions are on. David 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.