From the exec_dir website:
About this custom module:
This custom module for EasyApache, adds a new option in the PHP parameters ("exec_dir patch") which allows the administrator to easily install this patch. The custom module will detect the selected PHP version, download the correct patch via wget and patch the PHP sources.
Download:
View attachment custom_opt_mod-php5-phpexecdirpatch.zip
Install:
- Unzip the archive under /var/cpanel/easy/apache/custom_opt_mods/
- Go to the EasyApache page in WHM
- Select the "exec_dir patch" check box under the PHP parameters
- Finish the EasyApache procedure to compile and install Apache and PHP
- Edit your php.ini file accordingly (cPanel default php.ini is: /usr/local/lib/php.ini)
Please let me know if you have any problems.
More details about the exec_dir patch: The exec_dir patch homepage (About, Installation, Configuration)PHP has no known possibility to limit executing of external commands with disabled safe mode. Teherefore, here is a patch adding special directive exec_dir straightly into PHP. This directive is very similar to safe_mode_exec_dir, but safe mode has not to be enabled.
This patch limits or corrects the behavior of these functions:
exec()
passthru()
proc_open()
shell_exec()
system()
popen()
is_executable()
About this custom module:
This custom module for EasyApache, adds a new option in the PHP parameters ("exec_dir patch") which allows the administrator to easily install this patch. The custom module will detect the selected PHP version, download the correct patch via wget and patch the PHP sources.
Download:
View attachment custom_opt_mod-php5-phpexecdirpatch.zip
Install:
- Unzip the archive under /var/cpanel/easy/apache/custom_opt_mods/
- Go to the EasyApache page in WHM
- Select the "exec_dir patch" check box under the PHP parameters
- Finish the EasyApache procedure to compile and install Apache and PHP
- Edit your php.ini file accordingly (cPanel default php.ini is: /usr/local/lib/php.ini)
Please let me know if you have any problems.