Why do I get a PHP open_basedir restriction error message?

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:


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.

  • 34 Users Found This Useful
Was this answer helpful?

Related Articles

Do you support Ioncube?

Yes, we have compiled our servers with Ioncube support prebuilt, so no configuration on your part...

Do you support both PHP4 and PHP5?

We provide many different versions of PHP to our end users. If the version currently installed on...

Do you support the MySQLi PHP extension?

The MySQLi PHP extension is installed and enabled on all of our shared and semi-dedicated servers.

Do you support/allow ffmpeg or ffmpeg-php?

The short answer is "no", not on our shared hosting plans. ffmpeg can be very resource heavy on...