Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

How to enable shell_exec

$
0
0

@Ayjaycee wrote:

As per a few other posts I found, I’ve got the System Check message, in Other functions

shell_exec
You need to enable this built-in function.

But none of the other forum posts have any information on what shell_exec is or how to enable it on any platform.
I’m using a Hostinger server with the following:

  • PHP Version - 7.0
  • Apache Version - Apache/2.4
  • MariaDB Version - 10.2

I’m guessing, from this post on Stack Overflow https://stackoverflow.com/questions/24999673/how-to-enable-shell-exec-and-exec-on-php that I need root access to enable shell_exec and as I don’t have that, I’m stuck?

If you are not the root on the machine, and exec() function is disabled, then you can’t enable it by yourself.
See http://php.net/manual/en/ini.core.php#ini.disable-functions

disable_functions string
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.
Only internal functions can be disabled using this directive. User-defined functions are unaffected
This directive must be set in php.ini For example, you cannot set this in httpd.conf.

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles