enable exec() function in php just for 1 user?

TestUser

Verified User
Joined
Aug 26, 2011
Messages
222
Hello,
is there a way i could enable exec() function in php but just for 1 user / domain on server?
 
Hello,

Yes, there is. Move managing of disabled functions from php.ini to PHP-FPM config (if you use PHP-FPM) and/or webserver's config for LiteSpeed/OpenLiteSpeed. This way you will be able to could enable exec() function in php but just for 1 user / domain on server.

More information can be found in existing threads: https://www.google.com/search?q=disable_functions+site:directadmin.com The only things changed since then: there is no mod_php and suphp, other threads will be most likely still actual.
 
Check especially this thread for a howto. Especially post #8 and #18.

 
Back
Top