[BlueOnyx:09713] Re: exec on a single site
Michael Stauber
mstauber at blueonyx.it
Fri Mar 2 06:01:11 -05 2012
Hi Jeffrey,
> Can anyone help me with a simple way to enable exec on a
> single site. I really don't want to turn this on for the entire server.
The PHP directive "disable_functions" can only be set in php.ini:
http://www.php.net/manual/en/ini.core.php#ini.disable-functions
So one option of doing it for a single site only would be to enable suPHP. In
that case the site will have it's own php.ini.
You'd then need to edit the php.ini of that site and would have to remove
'exec' from "disable_functions".
You'd need to unprotect the sites php.ini with "chattr -i php.ini' first
before you can edit it, though. And this change might get reverted back
whenever you change this sites PHP settings through the GUI.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list