- go to app store -> search for
php - open configs of the PHP version you are using
- stop the FPM service (
PHPManager>service>Stop) - go to
FPM Profile - match these lines
listen.owner = root
listen.group = root
user = root
group = root
- open the terminal and run
> php-fpm --allow-to-run-as-root
now you can check
echo exec('whoami');
remove
exec()from disabled functions if it didn't run