Have whm server, suphp, php 5.3.28 with Suhosin
and in global php.ini it has exec function globally disabled, which is wanted for security.
But one user script want exec function and this user is trustable and important so i want enable it for him only.
When i add php.ini to the users root www folder with content:
and global php.ini has exec listed in disable functions, it returns error on website:
There is some tutorial with Suhosin: https://forums.cpanel.net/f5/enable-shell_exec-one-user-109601.html#post588281
but im unsure how to add that VirtualHost from WHM.
Also there is an idea to disable PHP CLI for one domain (i have CLI in PHP):
http://www.webhostingtalk.com/showthread.php?p=8751818#post8751818
please any idea? i listen suhosin has its disable functions too and i would switch to other phphandler like fcgi if that would fix, please advice me what to do, what to try, thanks
and in global php.ini it has exec function globally disabled, which is wanted for security.
But one user script want exec function and this user is trustable and important so i want enable it for him only.
When i add php.ini to the users root www folder with content:
(not having exec function mentioned so one would expect this will overide global php.ini)disable_functions = "shell_exec"
and global php.ini has exec listed in disable functions, it returns error on website:
At the bottom of global php.ini i have:Warning: exec() has been disabled for security reasons in ...
(wanting to override global disable_functions for this particular PATH, as seen exec is not listed, not disabled, but that user script still returns above error saying exec is disabled..)[PATH=/home/usernamehere/public_html/folderhere]
disable_functions = show_source, system, passthru, shell_exec, popen, proc_open, allow_url_fopen
There is some tutorial with Suhosin: https://forums.cpanel.net/f5/enable-shell_exec-one-user-109601.html#post588281
but im unsure how to add that VirtualHost from WHM.
Also there is an idea to disable PHP CLI for one domain (i have CLI in PHP):
http://www.webhostingtalk.com/showthread.php?p=8751818#post8751818
please any idea? i listen suhosin has its disable functions too and i would switch to other phphandler like fcgi if that would fix, please advice me what to do, what to try, thanks
Last edited: