Title: Open_Basedir Directory Error &#8211; SOLVED
Last modified: March 14, 2019

---

# Open_Basedir Directory Error – SOLVED

 *  Resolved [Company 50](https://wordpress.org/support/users/co50/)
 * (@co50)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/open_basedir-directory-error-solved/)
 * We’ve been struggling with our restores lately. We kept encountering the open_basedir
   error trying to restore any site. We worked with our hosting (we have a VPS) 
   to try to resolve it but nothing worked. We kept having them do manual migrations
   for us.
 * Finally we found the issue and I’m posting this more or less FYI in case it’s
   a bug or unintended functionality: When there is an .htaccess file in the public_html
   of a site, the script starts looking for an .htaccess outside of the public_html
   folder for some reason and because our open_basedir restrictions do not allow
   php scripts executing/running outside of the public_html folder, it fails. Removing
   the .htaccess file from the public_html root allows the script to run. This was
   never an issue in the past but is the case across the board for the last few 
   months. Maybe the script could advise on this similar to how it does if you leave
   wp-config.php in the root and do a restore.
    -  This topic was modified 7 years, 2 months ago by [Company 50](https://wordpress.org/support/users/co50/).

Viewing 1 replies (of 1 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/open_basedir-directory-error-solved/#post-11314929)
 * Hey [@co50](https://wordpress.org/support/users/co50/)
 * We haven’t really seen this on any of our testings, but it might be environment
   specific. If you want to submit a [support ticket](https://snapcreek.com/ticket)
   for this issue we can have a closer look at your setup if you want, so we can
   see how to properly root cause the issue. Please provide a link to this thread
   when submitting the ticket if you choose to go that route, Otherwise, we can 
   try to look at adding additional logic to try and intercept the issue in one 
   of the upcoming releases.
 * Thanks~

Viewing 1 replies (of 1 total)

The topic ‘Open_Basedir Directory Error – SOLVED’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/open_basedir-directory-error-solved/#post-11314929)
 * Status: resolved