redjersey
Verified User
Hi,
I'm currently using custombuild 2.0 and compile php with ./build secure_php (I'm using PHP + mod_ruid2)
I'm doing this so that I can disable some php functions.
However I need to have a few functions for my script. So what I did was, I used the "custom httpd configurations" and added the following:
php_admin_value disable_functions 'passthru'
restarted httpd service
when I looked at my phpinfo, it looks like I have overriden the disable_function:
Directive Local Master
disable_functions passthru exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source
however when I run "shell_exec" I'm still getting the error message saying "Warning: shell_exec() has been disabled for security reasons "
I wonder why it doesn't work? as I looked at my phpinfo it seems like it's overriden
Note: I don't have suhosin installed, as it doesn't support php 5.4
I'm currently using custombuild 2.0 and compile php with ./build secure_php (I'm using PHP + mod_ruid2)
I'm doing this so that I can disable some php functions.
However I need to have a few functions for my script. So what I did was, I used the "custom httpd configurations" and added the following:
php_admin_value disable_functions 'passthru'
restarted httpd service
when I looked at my phpinfo, it looks like I have overriden the disable_function:
Directive Local Master
disable_functions passthru exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source
however when I run "shell_exec" I'm still getting the error message saying "Warning: shell_exec() has been disabled for security reasons "
I wonder why it doesn't work? as I looked at my phpinfo it seems like it's overriden
Note: I don't have suhosin installed, as it doesn't support php 5.4