Hallo zusammen,
ich versuche Contao 4.9 innerhalb eines Docker Containers lokal auf meinem Rechner zu installieren. Das Host System ist Ubuntu 20.04.
Wenn ich versuche, Contao mit der "contao-manager.phar.php" zu installieren, bekomme ich die Fehlermeldung
Code:
ERROR 500 Failed to create "/var/www/html/contao-manager": mkdir(): Permission denied.
Wenn ich versuche, Contao mit Composer innerhalb des Containers über die Kommandozeile zu installieren, bricht die Installation mit folgender Fehlermeldung ab:
Code:
contao/manager-plugin: ...done generating plugin class
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
In FileLoader.php line 180:
The file "/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton
/config/config.yml" does not contain valid YAML: The constant "PDO::MYSQL_A
TTR_MULTI_STATEMENTS" is not defined at line 50 (near "!php/const PDO::MYSQ
L_ATTR_MULTI_STATEMENTS: false") in /var/www/html/vendor/contao/manager-bun
dle/src/Resources/skeleton/config/config.yml (which is being imported from
"/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton/config/c
onfig_prod.yml").
In YamlFileLoader.php line 693:
The file "/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton
/config/config.yml" does not contain valid YAML: The constant "PDO::MYSQL_A
TTR_MULTI_STATEMENTS" is not defined at line 50 (near "!php/const PDO::MYSQ
L_ATTR_MULTI_STATEMENTS: false").
In Inline.php line 615:
The constant "PDO::MYSQL_ATTR_MULTI_STATEMENTS" is not defined at line 50 (
near "!php/const PDO::MYSQL_ATTR_MULTI_STATEMENTS: false").
Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-update-cmd event terminated with an exception
[RuntimeException]
An error occurred while executing the "contao:install-web-dir" command:
In FileLoader.php line 180:
The file "/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton
/config/config.yml" does not contain valid YAML: The constant "PDO::MYSQL_A
TTR_MULTI_STATEMENTS" is not defined at line 50 (near "!php/const PDO::MYSQ
L_ATTR_MULTI_STATEMENTS: false") in /var/www/html/vendor/contao/manager-bun
dle/src/Resources/skeleton/config/config.yml (which is being imported from
"/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton/config/c
onfig_prod.yml").
In YamlFileLoader.php line 693:
The file "/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton
/config/config.yml" does not contain valid YAML: The constant "PDO::MYSQL_A
TTR_MULTI_STATEMENTS" is not defined at line 50 (near "!php/const PDO::MYSQ
L_ATTR_MULTI_STATEMENTS: false").
In Inline.php line 615:
The constant "PDO::MYSQL_ATTR_MULTI_STATEMENTS" is not defined at line 50 (
near "!php/const PDO::MYSQL_ATTR_MULTI_STATEMENTS: false").
Ich hatte zuvor schon Probleme mit dem Speicher bei Composer, so dass ich den Befehl folgendermaßen angepasst hatte:
Code:
php -d memory_limit=-1 /usr/local/bin/composer create-project contao/managed-edition . 4.9
Das Problem liegt eindeutig in der Datei "/var/www/html/vendor/contao/manager-bundle/src/Resources/skeleton
/config/config.yml". Ich weiß aber nicht, was ich da machen kann. Im Editor wird mir auch angezeigt, dass die Datei keinen validen YAML-Code enthält.
Danke schon mal für eure Hilfe!
Lesezeichen