Hallo Community,
wahrscheinlich habe ich eine selten dämliche Frage, aber was bedeutet "alle Dateien" mittels FTP aufspielen? Welche sind das denn im Einzelnen?
Warum frage ich? Nun, immer wenn ich lokal eine Änderung durchgeführt und getestet habe, möchte ich dies in die Testumgebung auf den Server spielen, damit der Kunde im Backend etwas üben kann, bevor diese online geht. Diese Website ist meine erste Kunden-Website mit Contao und sie funktioniert auch tadellos.
Aber auf dem Server bekomme ich nach dem Überspielen der Dateien manchmal die nachfolgende Fehlermeldung, und zwar nur dann, wenn ich auch den Order "System" überspielt habe. Die Fehlermeldung ist mir klar, da ich auf dem Server natürlich keinen localhost habe und daher keinen Zugriff bekomme.
PHP-Code:
Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) in system/modules/core/library/Contao/Database/Mysqli.php on line 47 #0 [internal function]: __error(2, 'mysqli::mysqli(...', '/var/www/client...', 47, Array)
#1 system/modules/core/library/Contao/Database/Mysqli.php(47): mysqli->mysqli('localhost', 'root', 'WamuduWebCMS', 'db_karpfinger', 3306, '')
#2 system/modules/core/library/Contao/Database.php(77): Contao\Database\Mysqli->connect()
#3 system/modules/core/library/Contao/Database.php(160): Contao\Database->__construct(Array)
#4 [internal function]: Contao\Database::getInstance()
#5 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#6 system/modules/core/library/Contao/User.php(89): Contao\System->import('Database')
#7 system/modules/core/classes/FrontendUser.php(79): Contao\User->__construct()
#8 system/modules/core/library/Contao/User.php(151): Contao\FrontendUser->__construct()
#9 [internal function]: Contao\User::getInstance()
#10 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#11 index.php(41): Contao\System->import('FrontendUser', 'User')
#12 index.php(432): Index->__construct()
#13 {main}
Fatal error: Uncaught exception Exception with message Access denied for user 'root'@'localhost' (using password: YES) thrown in system/modules/core/library/Contao/Database/Mysqli.php on line 51 #0 system/modules/core/library/Contao/Database.php(77): Contao\Database\Mysqli->connect()
#1 system/modules/core/library/Contao/Database.php(160): Contao\Database->__construct(Array)
#2 [internal function]: Contao\Database::getInstance()
#3 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#4 system/modules/core/library/Contao/User.php(89): Contao\System->import('Database')
#5 system/modules/core/classes/FrontendUser.php(79): Contao\User->__construct()
#6 system/modules/core/library/Contao/User.php(151): Contao\FrontendUser->__construct()
#7 [internal function]: Contao\User::getInstance()
#8 system/modules/core/library/Contao/System.php(110): call_user_func(Array)
#9 index.php(41): Contao\System->import('FrontendUser', 'User')
#10 index.php(432): Index->__construct()
#11 {main}
Wenn ich es richtig verstehe, dann dürfen nur der Ordner "files" und die Datenbank übertragen werden und auf keinen Fall der Ordner "system".
Was mache ich dann immer? Ich lösche die Installation auf dem Server und installiere mittels Contao-Check neu, danach läuft´s wieder. Das kann aber nicht "die" Lösung sein.
Kann mir jemand dazu Licht ins Dunkel bringen? Freue mich auf Eure Antworten. Vielen Dank!
Gruß
Schneetiger
Lesezeichen