[wp-trac] [WordPress Trac] #33119: custom location for wp-config.php

WordPress Trac noreply at wordpress.org
Sat Jul 25 06:55:32 UTC 2015


#33119: custom location for wp-config.php
--------------------------+-----------------------------
 Reporter:  igor.bukanov  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I use the same shared read-only wordpress installation for several sites.
 To allow site customization wp-config.php stored in the shared folder
 contains a single line:

 `require $_SERVER['WP_CONFIG'];`

 where `WP_CONFIG` is defined in the web server configuration for the site.

 Would it be possible to add a check for `$_SERVER['WP_CONFIG']` to
 wordpress itself?

 This way I could, for example, just use git to pull wordpress updates from
 [https://github.com/wordpress/wordpress github] without a need for a
 custom branch with wp-config.php defined. Another nice possibility is
 simplified atomic updates for the site. That is, I could just unpack
 wordpress tar into a new directory and call [http://man7.org/linux/man-
 pages/man2/rename.2.html renameat2(..., RENAME_EXCHANGE)] without the need
 to create first the above wp-config.php in the unpacked archive.

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


More information about the wp-trac mailing list