Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#19667 closed enhancement (duplicate)

Allow for wp-config.php to be multiple levels up (for sub-directory installs)

Reported by: Master Jake Owned by:
Priority: normal Milestone:
Component: Security Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Currently, you can leave wp-config.php in the standard installation directory of WordPress or move it up one level. At work, we generally install WordPress in root and move wp-config.php up one level (out of the servers content directory) for security purposes. It would be nice if we could do this with sub-directory installs as well (e.g. install in /wordpress and put wp-config.php in /../ [2 levels up]).

Perhaps we could use some sort of recursive directory search that starts in the WordPress install directory and continues going up levels until it finds a wp-config.php file (if one exists). There should, of course, be some cut off level to stop searching at. I think that one level above the document root would be sufficient.

Change History (2)

#1 @Master Jake
15 years ago

  • Cc chappellind@… added

#2 @scribu
15 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

This has been suggested before: #12988

Note: See TracTickets for help on using tickets.