[wp-trac] [WordPress Trac] #31266: Cannot install WP to domain with open_basedir

WordPress Trac noreply at wordpress.org
Sun Feb 8 20:25:50 UTC 2015


#31266: Cannot install WP to domain with open_basedir
--------------------------+-----------------------------
 Reporter:  azurit        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 WordPress cannot by installed to domain which has it's DocumentRoot in
 open_basedir, for example:
 DocumentRoot = /var/www/www.example.com/
 PHP open_basedir = /var/www/www.example.com/

 This error is printed:

 Warning: file_exists(): open_basedir restriction in effect. File(/var/www
 /wp-config.php) is not within the allowed path(s):
 (/var/www/www.example.com/:/tmp/:/usr/share/php/:.) in
 /var/www/www.example.com/wp-load.php on line 31

 Warning: Cannot modify header information - headers already sent by
 (output started at /home/testtest/djangoproject.sk/wp-load.php:31) in
 /var/www/www.example.com/wp-load.php on line 56


 This is because WP is searching for wp-config.php also in one level above
 the DocumentRoot. I suggest to remove this feature or make it configurable
 (and disabled by default) or count with open_basedir and continue with
 installation as if file_exists returns false.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31266>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list