coderior

coderior supports this item

Supported

Popular questions for this item

When trying to add a server a blank page comes up

This is almost always because either php5-curl or php5-json is missing, make sure these are installed then try again

Added servers aren’t working

If a server is adding to the list but isn’t displaying any of the data properly (all red) the issue is probably that the mysql version you are using doesn’t allow blank values for columns, simply modify the table to allow blank values on res_ethernet_speed, res_tx and res_rx

Trying to install and it goes into an infinite redirect loop

Go to line 47 of /application/config/config.php and change:

$config[‘uri_protocol’] = ‘AUTO’;

to:

$config[‘uri_protocol’] = ‘PATH_INFO’;

Can’t login after running the install

If you go back to /install and it still exists then it’s not installing properly, this is rare and to fix you can go to application/core/MY_Controller.php and add $_SERVER[‘PHP_SELF’] = current_url(); on the line before load_language();

How do I find my hash key?

The hash key is unique to every installation, if you need to find it for some reason (if you need to use the wget cron method for example), download the connector script, open it and you will find it on line 3.

How do I get the dashboard to refresh automatically

For now open /application/views/refresh.php and on line 5 change

$(”#page”).html($(”#page”, data).html());

to

location.reload();

When a remote server is down the host severus is installed on uses 100% CPU

in /application/libraries/Updateserver.php on line 76 change:

do {
    curl_multi_exec($multi, $running);
} while ($running > 0);
to
do {
    while (CURLM_CALL_MULTI_PERFORM === curl_multi_exec($multi, $running)) {};
    if (!$running) break;
    while (curl_multi_select($multi) === 0) {};
} while (true);

How does the advanced services work?

The advanced services allows you to place a bash script on the remote server that can perform any action you want as long as it returns a 1 for success and a 0 for error, which will then be interpreted by the host as the service either being up or down.

You can place the bash script where you like, the location you specify on the host should be relative to the connector script.

How do I run a php script with the advanced service

The advanced service runs a bash script, if you want to check the output of a php script instead you need to tell the bash script to run it, something like the following should work:
#!/bin/bash
result=$(/usr/bin/php -f /path/to/script.php)
echo "$result"

Getting it to work with zpanel

The instructions here might also help with other servers running suhosin, but obviously paths will be different

  • Go to /etc/zpanel/configs/apache/httpd-vhosts.conf removed exec and shell_exec from the “php_admin_value suhosin.executor.func.blacklist” line.
  • Save
  • service httpd restart (or service apache2 restart depending on setup)
  • There may be other commands that need to be removed, just remember after saving you will need to run restart the service

Schedule doesn’t work on Cpanel server

On cpanel servers (maybe some others as well) you will need to change the cron line through cpanel itself to say /usr/local/bin/php intead of just php

If for some reason the cron wont run you can try running it externally with

Sometimes wget doesn’t like the quotes, in which case try:

Show more

Contact the author

This author provides limited support for this item through this item's comments.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy

by
by
by
by
by
by