Introduction
In the update to EasyApache 4, the WHM function for "PHP open_basedir Tweak" was removed. However, it is still possible to employ the use of the "open_basedir" restrictions.
Procedure
To enable the use of "open_basedir" you will need to edit the global PHP INI file for the PHP version you wish to use. You can do this by going to WHM's Home>>Software>>MultiPHP INI Editor. Click on the "editor" tab, then select your PHP version from the drop-down menu.
Find the below section:
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
; http://php.net/open-basedir
;open_basedir =
Remove the ";" from the bottom line so the value looks like this:
open_basedir =
Save your changes. Once this change is made, cPanel users can then change the directive for their own directory using their own php.ini file. This is also mentioned in our documentation:
Enable this setting to require users to manually specify the open_basdir
setting in their relevant php.ini
files if PHP runs as a CGI, SuPHP, or FastCGI process.