Title: open_basedir restriction
Last modified: August 18, 2016

---

# open_basedir restriction

 *  [mctaylor4000](https://wordpress.org/support/users/mctaylor4000/)
 * (@mctaylor4000)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-restriction/)
 * Installed fresh for the first time, everything looks ok except cannot post, and
   every page has this at the bottom, or something similar with a different file
   name but the same restriction:
    Warning: open_basedir restriction in effect. 
   File is in wrong directory in /usr/local/plesk/apache/vhosts/mcshasta.com/httpdocs/
   wordpress/wp-admin/edit.php on line 178 Warning: Failed opening ‘admin-footer.
   php’ for inclusion (include_path=’.:/usr/local/psa/apache/lib/php’) in /usr/local/
   plesk/apache/vhosts/mcshasta.com/httpdocs/wordpress/wp-admin/edit.php on line
   178 any quick fixes?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-restriction/#post-78466)
 * This thread would suggest it’s a host issue:
    [http://wordpress.org/support/index.php?action=vthread&forum=2&topic=2247&page=0](http://wordpress.org/support/index.php?action=vthread&forum=2&topic=2247&page=0)
 *  [adamx97](https://wordpress.org/support/users/adamx97/)
 * (@adamx97)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/open_basedir-restriction/#post-78924)
 * I have found thisissue with many themes. One solution is to find any php_require
   statements like this:
    <?/* php require(‘./post.php’); */ ?>
 * and replace them with this:
    <?php include (TEMPLATEPATH . ‘/post.php’); ?>
 *  [jmdesigner81](https://wordpress.org/support/users/jmdesigner81/)
 * (@jmdesigner81)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-restriction/#post-78928)
 * I’m getting an error too.
    Warning: open_basedir restriction in effect. File 
   is in wrong directory in /home/httpd/vhosts/pibstoughton.com/httpdocs/wp-content/
   themes/Jmdesign01/index.php on line 3
 * any fixes?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘open_basedir restriction’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [jmdesigner81](https://wordpress.org/support/users/jmdesigner81/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/open_basedir-restriction/#post-78928)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
