(WHM >> Home >> Security Center >> PHP open_basedir Tweak)
open_basedir tweak limits the user's ability to browse the file system with PHP. It prevents PHP's access to the user's home directory, the /
tmp directory, and some necessary PHP system directories. This helps to protect your system from unauthorized access through PHP.
This security tweak modifies the Apache configuration file, regardless of the PHP handler that you select.
To enable the
open_basedir tweak, perform the following steps:
When you enable the
open_basedir tweak, the system adds PHP directives to each Virtual Host in the
These directives limit users' PHP access to the following directories:
/usr/lib/php /usr/local/lib/php /tmp