Email
Share
Jan 30 2007
Last update:

open_basedir restriction in effect

Filed under: Content Management Systems » Drupal,

What does "open_basedir restriction in effect" mean?

The open_basedir restriction is put on accounts to prevent users in a shared environment from accessing each others files or executing malicious scripts.

 

Why am I getting this error message?

This error message is common when a user tries to access a site via IP address prior to a DNS propagating. In other words, you have just set up a hosting account and are working on your site. The welcome email may have told you that you can access your site via http://123.45.67.89/~example, where "example" is your account name, prior to your DNS (Domain Name Server) resolving (an entry that tells your registrar to point your domain name at your hosting provider).

Once the DNS propagates, you can access your site via your domain name. Before then, you can't. Then how are you going to edit prepare your site, you ask? Especially if you are already running an existing site on the domain, but are updating the site and switching servers (ie. you don't want to experience downtime).

Possible Resolutions

Make sure you are using absolute paths in your site files and are referencing the correct username , ie:

 
/home/username/public_html

Next, you can do a reverse DNS lookup and access the IP address by server name instead. If that still doesn't work, I suggest you setup and test on a subdomain, then transfer the files, and finally update the DNS.

Your rating: None Average: 1.2 (24 votes)

Your rating: None Average: 1.2 (24 votes)

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Ask your host

For anyone experiencing open basedir problems, I suggest simply contacting your host and asking them to help you out. What are you paying your hosting provider for, after all? If they're not willing to host, switch hosts, and be prepared to pay a bit more. I'm continually amazed at how much time people waste trying to save a dollar or two by going with a hosting provider that runs their outfit out of a local garage or basement.


The content of this field is kept private and will not be shown publicly.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.