Base de Conhecimento


Suporte > Base de Conhecimento > Cpanel > Php open_basedir Tweak

Php open_basedir Tweak

Php’s open_basedir protection prevents users from opening files outside of their home directory with php scripts. You can use this function to select which accounts cannot open files outside of their home directory when using php scripts.

This is an important security feature as it will prevent users from being able to access system or other users files with php scripts. It will most importantly stop malicious scripts from being able to access a lot of important information.

  1. To access the Server Setup Menu, click on Server Setup, on the main screen of your WebHost Manager interface. Then, click on Tweak Security.
  2. Click on Configure in the Php’s open_basedir section.
  3. Click on the check box next to Enable php open_basedir Protection to enable Enable php open_basedir Protection.
  4. Click on a check box next to a domain’s name to allow them to open files outside of their home directory with php, if necessary.
  5. Click on Save.


Leia também