note 103999 deleted from function.exec by cmb

From: Date: Sun, 24 Nov 2019 08:56:22 +0000
Subject: note 103999 deleted from function.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213221@lists.php.net to get a copy of this message
Note Submitter: mail at samtuke dot com ---- There are (perhaps insurmountable) difficulties when trying to execute sudo commands from a PHP script and from an external script called by PHP on SELinux enabled machines. SELinux won't let apache change the group id of the process by default. You may need to use another solution, like make the PHP script deposit a file in a directory which is monitored by cron or inotify and which will call another script with root privileges.

« previous php.notes (#213221) next »