Hi,
with below configuration, and same php.ini, some functions not disabled in First PHP (5.5 suphp) by "disable_functions"
but when i change domain setup {PHP Version Selector} to use Second PHP (5.6 fastcgi) everything is ok "same php.ini":
/usr/local/directadmin/custombuild/options.conf
and this 3 php.ini's have same disable_functions list:
/usr/local/lib/php.ini
/usr/local/php55/lib/php.ini
/usr/local/php56/lib/php.ini
-----------
so, when i open domain.com/status/index.php there is different output on any of (php5.5) and (php5.6) !
for php5.5 is not ok: 0.05 3 Days 12:50:41 (mean can read "server load" and "server uptime" !)
for php5.6 is ok: (mean its right and can't read "load and uptime" as i disabled function in php.ini)
index.php codes:
also i have "exec" and "shell_exec" in disable_functions
is this a bug? or?
Thanks
with below configuration, and same php.ini, some functions not disabled in First PHP (5.5 suphp) by "disable_functions"
but when i change domain setup {PHP Version Selector} to use Second PHP (5.6 fastcgi) everything is ok "same php.ini":
/usr/local/directadmin/custombuild/options.conf
Code:
#PHP Settings
[COLOR=#FF0000]php1_release[/COLOR]=5.5
php1_mode=[COLOR=#ff0000]suphp[/COLOR]
[COLOR=#FF0000]php2_release[/COLOR]=5.6
php2_mode=[COLOR=#ff0000]fastcgi[/COLOR]
php_ini_type=production
webserver=[COLOR=#ff0000]nginx_apache[/COLOR]
and this 3 php.ini's have same disable_functions list:
/usr/local/lib/php.ini
/usr/local/php55/lib/php.ini
/usr/local/php56/lib/php.ini
-----------
so, when i open domain.com/status/index.php there is different output on any of (php5.5) and (php5.6) !
for php5.5 is not ok: 0.05 3 Days 12:50:41 (mean can read "server load" and "server uptime" !)
for php5.6 is ok: (mean its right and can't read "load and uptime" as i disabled function in php.ini)
index.php codes:
Code:
<?php
error_reporting(0);
$action = (isset($_GET['action'])) ? $_GET['action'] : '';
if ($action=="phpinfo") {
#phpinfo();
} else {
$load = file_get_contents("/proc/loadavg");
$load = explode(' ',$load);
$load = $load[0];
if (!$load && function_exists('exec')) {
$reguptime=trim(exec("uptime"));
if ($reguptime) if (preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/",$reguptime,$uptime)) $load = $uptime[3];
}
$uptime_text = file_get_contents("/proc/uptime");
$uptime = substr($uptime_text,0,strpos($uptime_text," "));
if (!$uptime && function_exists('shell_exec')) $uptime = shell_exec("cut -d. -f1 /proc/uptime");
$days = floor($uptime/60/60/24);
$hours = str_pad($uptime/60/60%24,2,"0",STR_PAD_LEFT);
$mins = str_pad($uptime/60%60,2,"0",STR_PAD_LEFT);
$secs = str_pad($uptime%60,2,"0",STR_PAD_LEFT);
$phpver = phpversion();
$mysqlver = (function_exists("mysql_get_client_info")) ? mysql_get_client_info() : '-';
$zendver = (function_exists("zend_version")) ? zend_version() : '-';
echo "<load>$load</load>\n";
echo "<uptime>$days Days $hours:$mins:$secs</uptime>\n";
}
also i have "exec" and "shell_exec" in disable_functions
is this a bug? or?
Thanks