Hello
I was using cron to process statistic every half hour in P. 2.0.3 and earlier.
Everything was working smooth until I upgraded Piwik to 2.1 and got a cron notice that I can’t process the data because of disabled shell_exec.
PHP Warning: shell_exec() has been disabled for security reasons in
/piwik/core/CliMulti/Process.php on line 165
Is there any way to process the data using cron in old manner (version < 2.1) or any other solution which do not rely on shell_exec ?
Reverting back to process stats upon login is not the best solution for me.
Thanks for lightning fast reply
I checked the differences , and updated mentioned files.
But changes were still basing on shell_exec() function, which (along with exec()) isn’t enabled (I’ve seen that webhosts started to disable it for security reasons) on many shared hosting services, thus I knew I’ll get same error on my webhosting account.
This time on line 176:
PHP Warning: shell_exec() has been disabled for security reasons in
/public_html/piwik/core/CliMulti/Process.php on line 176
So I assume that with P.2.1 the only way in this case is to process data only upon login.
btw. isn’t there an inconsistency in links to posted changes in files, because the process.php file contains: $command = ‘pcntl_signal_dispatch’;
while other fix has this line replaced with $command = ‘shell_exec’; ?