Title: open_basedir problem
Last modified: August 19, 2016

---

# open_basedir problem

 *  [gumi_kr](https://wordpress.org/support/users/gumi_kr/)
 * (@gumi_kr)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/open_basedir-problem-1/)
 * Hi! I’m trying to install a new fresh wordpress and all is fine until i try to
   login after install. After typing password my screen is blank. I can’t see blog
   either. After hours of research I came to following conclusion:
 * In my main folder /home/***/ i can see wordpress (using .htaccess and index.php)
   
   In /home/***/wordpress/ i don’t see anything after turning error_display i get:
 * Warning: main() [function.main]: open_basedir restriction in effect. File(./wp-
   blog-header.php) is not within the allowed path(s): (/usr/local/share/httpd/htdocs/
   home/:/export/share/httpd/htdocs/home/:/var/tmp/) in /export/share/httpd/htdocs/
   home/***/wordpress/index.php on line 17
 * As you can see the file is in allowed folder so i do not undestand why restriction
   is in effect.. what’s more interesting, I have installed wordpress on another
   account and everything is fine. The only difference is that another account is
   in folder /acccount2/
    and not in /home/***/
 * There is local entry for account in /home folder in
    homepages.conf:
 *  <Directory /usr/local/share/httpd/htdocs/home>
    AllowOverride all php_admin_value
   open_basedir “/usr/local/share/httpd/htdocs/home/:/export/share/httpd/htdocs/
   home/:/var/tmp/” </Directory>
 *  Alias /***/ “/usr/local/share/httpd/htdocs/home/***/”
    Alias /*** “/usr/local/
   share/httpd/htdocs/home/***”
 * Safe mode seems to be turned off (phpinfo() shows it’s off)
 * Please help!

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

 *  Thread Starter [gumi_kr](https://wordpress.org/support/users/gumi_kr/)
 * (@gumi_kr)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/open_basedir-problem-1/#post-1973283)
 * full warning:
 * Warning: main() [function.main]: open_basedir restriction in effect. File(./wp-
   blog-header.php) is not within the allowed path(s): (/usr/local/share/httpd/htdocs/
   home/:/export/share/httpd/htdocs/home/:/var/tmp/) in /export/share/httpd/htdocs/
   home/***/wordpress/index.php on line 17
 * Warning: main(./wp-blog-header.php) [function.main]: failed to open stream: Not
   owner in /export/share/httpd/htdocs/home/***/wordpress/index.php on line 17
 * Fatal error: main() [function.require]: Failed opening required ‘./wp-blog-header.
   php’ (include_path=’.:/usr/local/share/pear’) in /export/share/httpd/htdocs/home/***/
   wordpress/index.php on line 17
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/open_basedir-problem-1/#post-1973326)
 * Looks like you using wordpress from a directory wordpress so the index.php file
   that is in root needs to have folder wordpress on line 17
 * `require('./wordpress/wp-blog-header.php');`
 *  Thread Starter [gumi_kr](https://wordpress.org/support/users/gumi_kr/)
 * (@gumi_kr)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/open_basedir-problem-1/#post-1973347)
 * I checked it and it’s not that. I think problem is in apache config, but I don’t
   know how to change it. To make the problem simplier I have created two files:
 * 1) test.php:
    <?php require(‘test2.php’); ?>
 * 2) test2.php
    <?php print(‘akuku’) ?>
 * when I copy those files to /home/***/ and open test.php everything is fine
 * when I copy them to /home/***/wordpress/ i get the same error as before 🙁

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

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

## Tags

 * [open_basedir](https://wordpress.org/support/topic-tag/open_basedir/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 3 replies
 * 2 participants
 * Last reply from: [gumi_kr](https://wordpress.org/support/users/gumi_kr/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/open_basedir-problem-1/#post-1973347)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
