Jump to content

Portal Home > Server Status


Recommended Posts

Hi,

 

Under Server Status - Server Load it shows as Unavailable yet HTTP, FTP, POP3, PHP Info and Uptime all show fine.

 

I uploaded the status folder from the WHMCS download to the server at for example /public_html/my_directory/ so the actual path to the file is /public_html/my_directory/hosting/status/index.php i then put the URL in server configuration in WHMCS panel like http://hosting.domain.tld/status/'>http://hosting.domain.tld/status/

 

I have WHMCS installed in subdomain like http://hosting.domain.tld

 

How to get the Server Load to display?

 

I hope it isn't a problem with server :(

Link to comment
Share on other sites

Hello,

 

This would be due to a configuration of your server (your php.ini file) not allowing you to query the server load using the PHP script.

 

If you have root access to the server, you will need to edit the following line in your php.ini file:

 

disable_functions =

 

and remove the command that says exec

 

If you don't have root access, contact your host about removing the entry (if they will)

 

Cheers,

 

Dale

Link to comment
Share on other sites

Hi

 

In WebHost Manager @ Main >> Service Configuration >> PHP Configuration Editor

 

I have

 

Safe Mode

 

disable_functions

 

"This directive allows you to disable certain functions for security reasons. It takes on a comma-delimited list of function names. disable_functions is not affected by Safe Mode."

 

but the textarea is jut blank. Shall i just ask host or can i sort ?

 

Thanks for help

Link to comment
Share on other sites

Try:

 

pico /usr/local/lib/php.ini

 

or

 

nano /usr/local/lib/php.ini

 

Pico and nano are the easiest...I won't get you using VI as it is a little more complex.

 

If you can get into pico or nano, then press Ctrl+w for search, type "disable_functions" without the quotes and press enter.

 

Check the line and advise :)

 

Dale

Link to comment
Share on other sites

Cool. will have to read up on pico and nano. :)

 

I tried pico /usr/local/lib/php.ini

 

but got the same

 

; This directive allows you to disable certain functions for security reasons.

; It receives a comma-delimited list of function names. This directive is

; *NOT* affected by whether Safe Mode is turned On or Off.

disable_functions =

 

Neeexxxt :-)

Link to comment
Share on other sites

This is what's strange. It shows the Uptime fine just not the Server Load.

 

I have it like http://hosting.domain.com/status/

 

I even uploaded status folder to directory like http://www.domain.com/status/ to see if it needed to come off the main folder but it made no difference.

 

I can't believe i have full dedicated server and can't even get it to work right . Well i did get it to work with the first trial i used under a different subdomain. It isn't having any of it this time round though. I'd really like to get this working. WHMCS seems to be the best client billing management system for cPanel/WHM so would like to get it to work properly on my server setup. When little things like just showing the Uptime doesn't work it puts me off using the script :(

Link to comment
Share on other sites

I'm having a similar issue.

 

I have two servers, one runs Plesk and the other cPanel. The cPanel info is all there. The Plesk server shows uptime as "0 Days 00:00:00" and server load as "unavailable". Php Info is working on both.

 

[root@server ~]# cat /etc/php.ini | grep disable_functions
disable_functions =

 

Output from

<?php
exec("uptime", $MyResults);
print_r($MyResults);
?>

 

when called in a browser or from the command line is:

 

Array ( )

 

Any ideas?

Link to comment
Share on other sites

DedicatedNOW have sorted this for me

 

when i asked how they did it i got

 

 

"I could see that the code that was used to check uptime was edited and was replaced by one which uses another function "system" instead.

 

Please let us know if you need any further assistance regarding this."

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated