Bug #20215
closedInstall Tool do not store DB Username, Password and Host into localconf.php
0%
Description
I want to install typo3 by the install tool.
On 123 mode i type in username "root", password "xyz" and host "localhost" und press continue.
On next screen an error occur:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /opt/lampp/htdocs/t3v426/t3lib/class.t3lib_db.php on line 988
There is no connection to the database!
(Username: , Password: , Host: ).
I thing these Extension have to write the credatials into localconf.php and on t3lib/config_default.php reread from localconf.php.
The constants TYPO3_db_username, TYPO3_db_password ... in typo3/sysext/install/mod/class.tx_install.php are NULL.
If i wriite the credentials themself into localhost.php zje credentials are shown on 123 install page.
Have anyone a solution?
(issue imported from #M10736)
Updated by Oliver Hader over 15 years ago
Please check whether the localconf.php file and/or the directory typo3conf is writable for webserver's system user.
The install tool should print out warnings about that...
Updated by Martin over 15 years ago
OK i found the problem.
The localconf.php file is writeable for anyone and no error message occur but the "localconf.php.TMP.php" file could not be written in typo3conf.
It appears no Message about localconf.php.TMP.php file.
If i give typo3conf folder is writeable for other the localconf.php.TMP.php could be created and the data is stored perfectly.
I think it is not a bug of typo3 thus ticket could be closed.
Updated by Martin over 15 years ago
A other fix is to create a file "localconf.php.TMP.php and chmod them writeable ;-)