Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#19667 closed enhancement (duplicate)

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

Reported by: master-jake's profile Master Jake Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Security Keywords:
Focuses: Cc:

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
12 years ago

  • Cc chappellind@… added

#2 @scribu
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This has been suggested before: #12988

Note: See TracTickets for help on using tickets.