My website shows a PHP error about a restricted path (open_basedir)
What this error means and how to resolve it.
For your protection, your website's PHP is only ever allowed to read and write files inside your own account. This stops your site from being able to reach anything outside it, even by accident, and keeps it separate from every other account on the same server. When something tries to reach a file outside that boundary, PHP refuses and records an error mentioning open_basedir restriction in effect.
What usually causes this
This almost always means something on your site is trying to reach a file or folder using an absolute path that points outside your own account, most often left over from a configuration file copied or migrated from a different server, or a plugin with a hardcoded path from wherever it was originally set up.
Steps
- Click Visitors & Logs under Statistics in the sidebar, choose the affected domain, and open the Error log tab to find the exact file and path named in the error.
- Open that file through File Manager under Files in the sidebar, and check any path it refers to. A path should either be relative, or an absolute path that starts inside your own account's own folders.
- Correct the path so it points to a location inside your account, then reload your site to confirm the error is gone.