I'm having a bit of a trouble with the shell exec on my server. After following some tutorials I have changed my php.ini:
safe_mode Off
disable_functions pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
suhosin.executor.func.blacklist passthru, show_source, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec
This is my phpinfo() and there is no reference to shell_exec command. I don't know where this suhosin.executor.func.blacklist comes from as it is commented out in my /etc/php5/apache2/conf.d/suhosin.ini.
I'm using zpanel under Ubuntu 12.04. Thank you!
It may be helpful to search for
suhosin.executor.func.blacklistin all potential php.ini files, e.g.The entry may be set from within .htaccess in your application's directory or parent directories, too, e.g.
phpinfo()lists directories for .ini files, e.g.: