We are aware of a potentially service impacting issue. Learn more

Why do I get a PHP open_basedir restriction error message? Print

  • 36

This error generally occurs when you are using temporary site links whilst waiting for DNS propagation to finish. This is entirely normal and is expected behaviour. Please wait until DNS propagation has completed and the error will clear. Alternatively, if you cannot wait, you can modify your local machines HOSTS file to accomodate the servers IP address.

If you are receiving this error using your domain name, then you are attempting to access a directory or file that is not allowed within your website space. Please check your scripts and try again, or contact our support team for assistance.

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s):

If you're receiving the above error message on a Wordpress blog, the likely cause is that you've had your site transferred to us from a previous hosting provider, and the paths to your home directory are now different. Fortunately, the fix is very simple.

Login to your Wordpress dashboard, click on 'Settings', then 'Miscellaneous' and ensure that the "Store uploads in this folder" option is set to:

wp-content/uploads

If it's already set to 'wp-content/uploads' (without quotes), simply hit the 'Save' button and Wordpress will recalculate your home directory path. The errors should now be gone and your site should work normally.


Was this answer helpful?

« Back