shell_exec()?

Hello,

I am trying to install Piwik on a new server however get the following errors: I have checked for bugs and can see that something was fixed relating to shell_exec() .


There is an error. Please report the message (Piwik 2.3.0) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: shell_exec() has been disabled for security reasons in /home/<name>/public_html/<website>/core/CliMulti/Process.php on line 170

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 shell_exec(...) called at [/home/<name>/public_html/<website>/core/CliMulti/Process.php:170]
#2 Piwik\CliMulti\Process::isSystemNotSupported(...) called at [/home/<name>/public_html/<website>/core/CliMulti/Process.php:153]
#3 Piwik\CliMulti\Process::isSupported(...) called at [/home/<name>/public_html/<website>/plugins/Installation/SystemCheck.php:177]
#4 Piwik\Plugins\Installation\SystemCheck::getSystemInformation(...) called at [/home/<name>/public_html/<website>/plugins/Installation/Controller.php:406]
#5 Piwik\Plugins\Installation\Controller::getSystemInformation(...) called at [/home/<name>/public_html/<website>/plugins/Installation/Controller.php:605]
#6 Piwik\Plugins\Installation\Controller->setupSystemCheckView(...) called at [/home/<name>/public_html/<website>/plugins/Installation/Controller.php:119]
#7 Piwik\Plugins\Installation\Controller->systemCheck(...) called at [:]
#8 call_user_func_array(...) called at [/home/<name>/public_html/<website>/core/FrontController.php:500]
#9 Piwik\FrontController->doDispatch(...) called at [/home/<name>/public_html/<website>/core/FrontController.php:85]
#10 Piwik\FrontController->dispatch(...) called at [/home/<name>/public_html/<website>/plugins/Installation/Installation.php:87]
#11 Piwik\Plugins\Installation\Installation->dispatch(...) called at [:]
#12 call_user_func_array(...) called at [/home/<name>/public_html/<website>/core/EventDispatcher.php:98]
#13 Piwik\EventDispatcher->postEvent(...) called at [/home/<name>/public_html/<website>/core/EventDispatcher.php:161]
#14 Piwik\EventDispatcher->postPendingEventsTo(...) called at [/home/<name>/public_html/<website>/core/Plugin/Manager.php:797]
#15 Piwik\Plugin\Manager->reloadPlugins(...) called at [/home/<name>/public_html/<website>/core/Plugin/Manager.php:620]
#16 Piwik\Plugin\Manager->loadPlugins(...) called at [/home/<name>/public_html/<website>/core/Plugin/Manager.php:91]
#17 Piwik\Plugin\Manager->loadActivatedPlugins(...) called at [/home/<name>/public_html/<website>/core/FrontController.php:277]
#18 Piwik\FrontController->init(...) called at [/home/<name>/public_html/<website>/core/dispatch.php:33]
#19 require_once(...) called at [/home/<name>/public_html/<website>/index.php:47]

i recomend you add more server info and details to help troubleshoot

what server type and version? what php version?

please ask your web hosting company to enable shell_exec on your account

This is active on my hosting account.

Any other feedback on this issue?

if you error message still is: Warning: shell_exec() has been disabled for security reasons in /home//public_html//core/CliMulti/Process.php on line 170

then please ask your web hosting company to enable shell_exec on your account

Maybe irrelevant but PHP used in command line may have a different php.ini configuration file where shell_exec() isn’t enable…

Dali