[wp-trac] [WordPress Trac] #40095: installation looks outside of it's installation directory
WordPress Trac
noreply at wordpress.org
Fri Mar 10 13:26:59 UTC 2017
#40095: installation looks outside of it's installation directory
-----------------------------+----------------------
Reporter: jbvignaud | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Upgrade/Install | Version: 4.7.3
Severity: normal | Resolution: invalid
Keywords: | Focuses:
-----------------------------+----------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Hey there,
Thanks for taking the time for this report and welcome to Trac!
> After debug, i found that wp install was looking for a wp-config.php in
"/home/www/" (outside of it's installation directory). And of course,
there i had a wp-config.php, copy of an existing site's wp-config.php.
That's intended behaviour. If there's no `wp-config.php` file in the
current directory, WordPress tries to search for it one level above.
That's useful when you install WordPress in a sub-folder (e.g.
example.com/wp/) or when you don't want your config file to sit in the web
root.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40095#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list