Feature #77974
closedQualified Guessing database credentials during installation routine
0%
Description
Idea of this feature is, to check during the installation routine several places on the server for stored database connection credentials and of course databases. These could be suggestet to the installing user.
Questions is: Where to check? These credentials normally are stored very savely. In recommended files like my.cnf etc. no credentials are nor should be stored. Is there another way?
Updated by Christian Kuhn about 8 years ago
that was just an idea.
i guess, we will have dotenv within the core sooner or later. the install tool could then search for such a file and see if it finds variable definitions that look like db credentials.
i think there could be 2 guesses:
- check if a home dir is set via env vars. if so, look out for a ~/.my.cnf file.
- check for a .env file one directory above PATH_site (one above doc-root). if so, file_get_contents() it and see if there are TYPO3_DB_ variables.
Updated by Riccardo De Contardi over 7 years ago
- Target version changed from 8 LTS to 9.0
Updated by Christian Kuhn almost 7 years ago
- Status changed from New to Closed
this has partially been implemented with other tickets by taking information from .env. closing this as 'nothing more to do here at the moment'.