scriptygoddess

10 Jun, 2009

open_basedir restriction in effect error on WordPress page

Posted by: Jennifer In: WordPress: Lessons Learned

This is the second time I've run into this problem. I opted not to post about it the first time, because the solution was so simple it was kind of silly. But lo-and-behold – I hit it again and forgot what the solution was anyway. :)

I know there can be more than one thing that causes that "open_basedir restriction in effect" error – but in my case it was because:

1) I was moving a wordpress site to another location (usually a subdomain of a live site so I could set it up as a "test area")
2) In the settings page, I had specified a different path for uploads (this is done on the "miscellaneous" settings page). This directory was actually OUTSIDE of the wordpress directory, which means I had to use the full server path to point to my custom uploads directory…

So I copied over the files to the test area, copied the database to the test database, changed the domain to the test domain using this method. But if you've specified a path for uploads on that miscellaneous page – you'll need to log in once everything is all set up and change the path there too to the new one pointed at the new location.

Related posts:

  1. Striping IMG tags from the_content in WordPress (and how to fudge page excerpts) Background: For a site I was working on, I was...
  2. Search from WordPress Admin (Post Listing) Redirecting to Home Page This is possibly the most bizarre thing I've ever seen....
  3. Anchor Links in WordPress Posts – another shortcode solution I was recently asked by a client how they could...
  4. Wordpress 2.8 Issues In case you hadn't heard (and if you're using wordpress,...
  5. Custom Template for Parent and Sub Categories (without a plugin) in WordPress When using WordPress as a CMS, I often repurpose the...

Related posts brought to you by Yet Another Related Posts Plugin.

1 Response to "open_basedir restriction in effect error on WordPress page"

1 | aequalsb

June 18th, 2009 at 11:47 am

Avatar

That is an error that occurs when whatever user php runs as (on my server it's apache) does not have the proper permission to perform the requested operation

Comment Form

Featured Sponsors


  • Michael: You can use get_header(2) in your case. The filename of your custom header has to be header-2.php. The problem with include(your_file.php) is, all
  • cliff: hi wonder if you can help me, pls i designed www.kouga.mobi using dreamweaver CS3 and now want to make the phonenumbers into links so that if you
  • jerey: how do i rewrite this because it tried RewriteEngine on #Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FIL

About


Advertisements