Contao Installation auf Hostpoint
Hallo
Wollte Contao 4.4 auf Hostpoint mit Contao Manager 1.0.4 Contao 4.4 LTS installieren – funktioniert leider wiedermal nicht.
Contao-Manager zeigt im Fenster:
Installing Contao Application
Stopping current operation …
The background task is being cancelled.
In der Console steht:
Warte auf Konsolenausgabe …
Meine Einstellungen bei Hostpoint:
PHP 7.2 = Standart
upload_max_filesize: 200M
post_max_size: 200M
memory_limit: 256M
max_execution_time: 500
max_input_vars: 2000
Auf einem anderen Server funktioniert die Installation tadellos :-)
Hat jemand eine Lösung?
Liste der Anhänge anzeigen (Anzahl: 1)
Danke für den Hinweis.
Nachdem ich die PHP-Datei «allow_url_fopen = On» (User-ini im web-ordner) hinzugefügt habe funktionierte die Installation:
.bash_profile anlegen
> Inhalt:
PATH=/usr/local/php70/bin:$PATH
export PATH
export PHPRC=/home/nutzer/etc/php72/php.ini
Beim erneuern des Caches erhielt ich dann folgende Fehlermeldung in der CM-Console:
HTML-Code:
$ /usr/local/php72/bin/php '-q' '/home/pmworks/www/neu.pm-works.ch/vendor/contao/manager-bundle/bin/contao-console' 'cache:clear' '--env=prod' '--no-warmup' 2>&1
// Clearing the cache for the prod environment with debug
// false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
# Process terminated with exit code 0
# Result: OK
$ /usr/local/php72/bin/php '-q' '/home/pmworks/www/neu.pm-works.ch/vendor/contao/manager-bundle/bin/contao-console' 'cache:warmup' '--env=prod' 2>&1
// Warming up the cache for the prod environment with debug
// false
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 946176 bytes) in /home/pmworks/www/neu.pm-works.ch/vendor/twig/twig/lib/Twig/Lexer.php on line 178
In Lexer.php line 178:
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
946176 bytes)
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command>
# Process terminated with exit code 255
# Result: Unknown error
Mit der Unterstützung von Hostpoint musste die «memory size» für diesen Prozess erhöht werden.
Auf dem Server wurde dann ein neues Verzeichnis mit PHP-Dateien angelegt, diese gelten dann für den ganzen Server:
Anhang 21621
Das Ganze wurde dann über das .bash_profile verbunden:
> Inhalt:
PATH=/usr/local/php70/bin:$PATH
export PATH
export PHPRC=/home/nutzer/etc/php72/php.ini
Was in den Dateien drin steht weiss ich nicht, wen es interessiert kann Hostpoint kontaktieren.
Auf jeden Fall funktioniert jetzt alles :-)