The question is, i have used shell_exec() function in a php script but it runs once… the php-fpm do not run again due to disabled_functions issue reported in nginx error log.
I tried exec() and passthru() and got the same problem.
So, how to execute a shell script from PhP7 nowadays ??
BTW, the phpinfo() shows those functions are disabled_functions in core, besides the disabled_functions in php.ini is empty. So i do not know how to enable them, and i wouldn’t like to use functions that have security issues.
Thanks in advance.