> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Enable or Disable open_basedir in DirectAdmin

:::info

This is applicable only to DirectAdmin-based VPSes. You can enable or disable this feature as needed.

:::

## Open PHP Settings


### Log in to DirectAdmin
Log in to DirectAdmin as Admin at `https://Your-DirectAdmin-URL:2222`.
### Open PHP Settings
Click on **PHP Settings** in the **Server Manager** menu.
<img alt="PHP Settings in the Server Manager menu" src={image0} />

## Disabling open_basedir

To disable `open_basedir` for a domain, select the domain and click **Disable Open Basedir**.

![Disable Open Basedir button](/static/image/2.0f61611dd0.png)
## Enabling open_basedir

To enable `open_basedir` for a domain, select the domain and click **Enable Open Basedir**.

![Enable Open Basedir button](/static/image/3.e190db3c4b.png)