Ergebnis 1 bis 6 von 6

Thema: Installation von Contao 4.4 bei netcup mit PHP 5.6 klappt nicht

  1. #1
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.077
    Contao-Projekt unterstützen

    Support Contao

    Standard Installation von Contao 4.4 bei netcup mit PHP 5.6 klappt nicht

    Gerade habe ich mal die Installation von Contao 4.4 bei netcup mit PHP 5.6.40 probiert.
    Dabei hat der (aktuelle) Contao-Manager erst mal ordnungsgemäß ein Donwgrade auf Version 1.1.9 durchgeführt. Nach Auswahl von netcup bei der Konfiguration und aktiviertem Cloud-Resolver versuche ich Contao 4.4 LTS zu installieren. Hierbei wird in der Konsole der untenstehende Text ausgegeben. Ist die Installation jetzt wegen einer falsch/nicht eingestellten Zeitzone verstorben oder was könnte sonst die Ursache sein? Wenn ich die Pakete danach nochmals aktualisieren lasse, dann lädt er halt nichts runter, stirbt dann aber mit der selben Meldung. Ist mir bisher noch nie aufgefallen, weil ich PHP 5.6 seit geraumer Zeit nicht mehr nutze. Aber wir hatten ja letztens mal so einen Fall wo die 4.4 Installation mit PHP 5.6 nicht funktioniert hat, deswegen wollte ich das mal testen. Das automatische Downgrade des Managers hat hier allerdings geklappt. Ist das eine Fehleinstellung bei netcup in PHP 5.6? Der Wert date.timezone ist nicht gesetzt in der CLI-Version. In der Webversion steht er auf "Europe/Berlin". Müsste das auch in die CLI rein oder ist auch das falsch? Dann würde ich das mal bei netcup melden. Ich teste dann mal mit 7.2, 7.3 und 7.4 weiter ...
    Code:
    > Installing contao/managed-edition 4.4
    
    > Resolving dependencies using Composer Cloud v2.1.1
    
    # Job ID C3sweGOjGqZMgtbu9e6Xl8AL4EeYOAlpr7CiOkZEatdYvt0dUB3200ZkILJF7CWs52fE6F9QYOPQ0WQT17UuRSv3Nb9qALAZ88EiQNdSX completed in 29 seconds
    # Memory usage: 386.24MB (peak: 2067.92MB), time: 28.56s.
    
    $ /usr/local/php56/bin/php '-q' '-d' 'date.timezone=UTC' '/var/www/vhosts/hosting126713.a2feb.netcup.net/webs/theme1.bit-01.de/web/contao-manager.phar.php' 'composer' 'install' '--prefer-dist' '--no-dev' '--no-progress' '--no-suggest' '--no-ansi' '--no-interaction' '--optimize-autoloader' 2>&1
    
    Loading composer repositories with package information
    Installing dependencies from lock file
    Package operations: 109 installs, 0 updates, 0 removals
    As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
    This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
    Installing 'unzip' may remediate them.
      - Installing contao-components/installer (1.3.1): Downloading (100%)
      - Installing contao-components/ace (1.4.7): Downloading (100%)
      - Installing contao-components/chosen (1.2.3): Downloading (100%)
      - Installing contao-components/colorbox (1.6.5): Downloading (100%)
      - Installing contao-components/colorpicker (1.5.1): Downloading (100%)
      - Installing contao-components/compass (0.12.2.1): Downloading (100%)
      - Installing contao-components/contao (7.1.5): Downloading (100%)
      - Installing contao-components/datepicker (2.3.1): Downloading (100%)
      - Installing contao-components/dropzone (4.3.0): Downloading (100%)
      - Installing contao-components/highlight (8.9.1): Downloading (100%)
      - Installing contao-components/html5shiv (3.7.3): Downloading (100%)
      - Installing contao-components/jquery (1.12.4): Downloading (100%)
      - Installing contao-components/jquery-ui (1.12.1.1): Downloading (100%)
      - Installing contao-components/mediabox (1.5.5): Downloading (100%)
      - Installing contao-components/mediaelement (4.2.14): Downloading (100%)
      - Installing contao-components/mootools (1.6.0.6): Downloading (100%)
      - Installing contao-components/respimage (1.4.2): Downloading (100%)
      - Installing contao-components/simplemodal (2.1.1): Downloading (100%)
      - Installing contao-components/swipe (2.2.0): Downloading (100%)
      - Installing contao-components/tablesort (3.4.12): Downloading (100%)
      - Installing contao-components/tablesorter (2.1.1): Downloading (100%)
      - Installing contao-components/tinymce4 (4.6.7.3): Downloading (100%)
      - Installing symfony/polyfill-ctype (v1.13.1): Downloading (100%)
      - Installing twig/twig (v1.42.4): Downloading (100%)
      - Installing paragonie/random_compat (v2.0.18): Downloading (100%)
      - Installing symfony/polyfill-php70 (v1.13.1): Downloading (100%)
      - Installing symfony/polyfill-util (v1.13.1): Downloading (100%)
      - Installing symfony/polyfill-php56 (v1.13.1): Downloading (100%)
      - Installing symfony/polyfill-mbstring (v1.13.1): Downloading (100%)
      - Installing symfony/symfony (v3.4.36): Downloading (100%)
      - Installing symfony/polyfill-intl-icu (v1.13.1): Downloading (100%)
      - Installing symfony/polyfill-apcu (v1.13.1): Downloading (100%)
      - Installing psr/simple-cache (1.0.1): Downloading (100%)
      - Installing psr/log (1.1.2): Downloading (100%)
      - Installing psr/link (1.0.0): Downloading (100%)
      - Installing psr/container (1.0.0): Downloading (100%)
      - Installing psr/cache (1.0.1): Downloading (100%)
      - Installing fig/link-util (1.0.0): Downloading (100%)
      - Installing doctrine/lexer (1.0.2): Downloading (100%)
      - Installing doctrine/inflector (v1.1.0): Downloading (100%)
      - Installing doctrine/collections (v1.4.0): Downloading (100%)
      - Installing doctrine/cache (v1.6.2): Downloading (100%)
      - Installing doctrine/annotations (v1.4.0): Downloading (100%)
      - Installing doctrine/common (v2.7.3): Downloading (100%)
      - Installing webmozart/assert (1.6.0): Downloading (100%)
      - Installing webmozart/path-util (2.3.0): Downloading (100%)
      - Installing true/punycode (v2.1.1): Downloading (100%)
      - Installing psr/http-message (1.0.1): Downloading (100%)
      - Installing php-http/message-factory (v1.0.2): Downloading (100%)
      - Installing clue/stream-filter (v1.4.1): Downloading (100%)
      - Installing php-http/message (1.7.2): Downloading (100%)
      - Installing php-http/discovery (1.6.1): Downloading (100%)
      - Installing php-http/promise (v1.0.0): Downloading (100%)
      - Installing php-http/httplug (v1.1.0): Downloading (100%)
      - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
      - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)
      - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
      - Installing guzzlehttp/guzzle (6.4.1): Downloading (100%)
      - Installing php-http/guzzle6-adapter (v1.1.1): Downloading (100%)
      - Installing php-http/client-common (1.10.0): Downloading (100%)
      - Installing friendsofsymfony/http-cache (2.8.0): Downloading (100%)
      - Installing friendsofsymfony/http-cache-bundle (2.1.2): Downloading (100%)
      - Installing terminal42/header-replay-bundle (1.5.3): Downloading (100%)
      - Installing tecnickcom/tcpdf (6.3.2): Downloading (100%)
      - Installing swiftmailer/swiftmailer (v5.4.12): Downloading (100%)
      - Installing symfony/swiftmailer-bundle (v2.6.7): Downloading (100%)
      - Installing simplepie/simplepie (1.5.3): Downloading (100%)
      - Installing scssphp/scssphp (1.0.5): Downloading (100%)
      - Installing phpunit/php-token-stream (1.4.12): Downloading (100%)
      - Installing phpspec/php-diff (v1.1.0): Downloading (100%)
      - Installing patchwork/utf8 (v1.3.1): Downloading (100%)
      - Installing oyejorge/less.php (v1.7.0.14): Downloading (100%)
      - Installing nelmio/cors-bundle (1.5.6): Downloading (100%)
      - Installing michelf/php-markdown (1.8.0): Downloading (100%)
      - Installing matthiasmullie/path-converter (1.1.2): Downloading (100%)
      - Installing matthiasmullie/minify (1.3.61): Downloading (100%)
      - Installing jeremykendall/php-domain-parser (3.0.0): Downloading (100%)
      - Installing league/uri (4.2.2): Downloading (100%)
      - Installing knplabs/knp-time-bundle (v1.9.1): Downloading (100%)
      - Installing knplabs/knp-menu (2.6.0): Downloading (100%)
      - Installing knplabs/knp-menu-bundle (2.2.2): Downloading (100%)
      - Installing imagine/imagine (1.2.2): Downloading (100%)
      - Installing doctrine/doctrine-cache-bundle (1.3.5): Downloading (100%)
      - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%)
      - Installing doctrine/dbal (v2.5.13): Downloading (100%)
      - Installing doctrine/doctrine-bundle (1.10.3): Downloading (100%)
      - Installing contao/imagine-svg (0.2.2): Downloading (100%)
      - Installing contao/image (0.3.9): Downloading (100%)
      - Installing contao/core-bundle (4.4.45): Downloading (100%)
      - Installing contao/calendar-bundle (4.4.45): Downloading (100%)
      - Installing contao/comments-bundle (4.4.45): Downloading (100%)
      - Installing contao/conflicts (dev-master 99f14df)
      - Installing contao/faq-bundle (4.4.45): Downloading (100%)
      - Installing contao/listing-bundle (4.4.45): Downloading (100%)
      - Installing toflar/psr6-symfony-http-cache-store (2.1.1): Downloading (100%)
      - Installing monolog/monolog (1.25.2): Downloading (100%)
      - Installing symfony/monolog-bundle (v3.5.0): Downloading (100%)
      - Installing composer/ca-bundle (1.2.4): Downloading (100%)
      - Installing ua-parser/uap-php (v3.9.2): Downloading (100%)
      - Installing nelmio/security-bundle (2.7.0): Downloading (100%)
      - Installing lexik/maintenance-bundle (v2.1.5): Downloading (100%)
      - Installing contao/manager-plugin (2.2.1): Downloading (100%)
      - Installing sensiolabs/ansi-to-html (v1.1.3): Downloading (100%)
      - Installing sensiolabs/security-checker (v5.0.3): Downloading (100%)
      - Installing sensio/distribution-bundle (v5.0.25): Downloading (100%)
      - Installing contao/installation-bundle (4.4.45): Downloading (100%)
      - Installing contao/manager-bundle (4.4.45): Downloading (100%)
      - Installing contao/news-bundle (4.4.45): Downloading (100%)
      - Installing contao/newsletter-bundle (4.4.45): Downloading (100%)
    Generating optimized autoload files
    > Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
    
    In RotatingFileHandler.php line 50:
                                                                                   
      DateTime::__construct(): It is not safe to rely on the system's timezone se  
      ttings. You are *required* to use the date.timezone setting or the date_def  
      ault_timezone_set() function. In case you used any of those methods and you  
       are still getting this warning, you most likely misspelled the timezone id  
      entifier. We selected the timezone 'UTC' for now, but please set date.timez  
      one to select your timezone.                                                 
                                                                                   
    
    Script Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication handling the post-install-cmd event terminated with an exception
    
    In ScriptHandler.php line 113:
                                                                                   
      An error occurred while executing the "contao:install-web-dir" command:      
      In RotatingFileHandler.php line 50:                                          
                                                                                   
                                                                                   
        DateTime::__construct(): It is not safe to rely on the system's timezone   
      se                                                                           
        ttings. You are *required* to use the date.timezone setting or the date_d  
      ef                                                                           
        ault_timezone_set() function. In case you used any of those methods and y  
      ou                                                                           
         are still getting this warning, you most likely misspelled the timezone   
      id                                                                           
        entifier. We selected the timezone 'UTC' for now, but please set date.tim  
      ez                                                                           
        one to select your timezone.                                               
                                                                                   
    
    install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
    
    
    # Process terminated with exit code 1
    # Result: General error
    
    
    ---
    
    ### Der Hintergrundprozess wurde unerwartet beendet ###

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.088
    Partner-ID
    10107

    Standard

    Ja, die Zeitzone muss korrekt gesetzt sein.

  3. #3
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.077
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Dann werde ich denen mal ein Ticket schreiben. Auch wenn ich kein PHP 5.6 dort benutze, solange sie es anbieten sollte es auch funktionieren.
    PHP 7.4 scheint dagegen zu funktionieren, die Contao-Installation mit dem Manager lief jedenfalls problemlos durch, ebenso das Installtool.

  4. #4
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.077
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hmm, die anderen PHP-CLI Versionen haben alle auch "no value" bei date.timezone, aber da funktioniert es.
    Die Warnung kommt auch nicht vom Manager oder Contao, sie kommt auch wenn ich in der Konsole eine PHP-Datei mit phpinfo() Aufruf starte. Allerdings nur bei PHP 5.6, obwohl auch sonst nirgends ein Wert für date.timezone gesetzt ist. Kann es sein, dass es einfach ein Problem ist, dass bei Ausführung gewisser oder aller PHP-Skripte diese Warnung mit zurück kommt?
    Oder ist die fehlende Einstellung nur bei PHP 5.6 ein Problem? Installationen mit PHP 7.2 und jetzt auch PHP 7.4 haben eigentlich immer funktioniert.

    PHP 5.6:
    Code:
    bash-4.3$ /usr/local/php56/bin/php php_info.php | grep "timezone"
    Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /webs/php_info.php on line 1
    Default timezone => UTC
    date.timezone => no value => no value
    PHP 7.2:
    Code:
    bash-4.3$ /usr/local/php72/bin/php php_info.php | grep timezone
    Default timezone => UTC
    date.timezone => no value => no value
    PHP 7.4:
    Code:
    bash-4.3$ /usr/local/php74/bin/php php_info.php | grep timezone
    Default timezone => UTC
    date.timezone => no value => no value

  5. #5
    Contao-Urgestein Avatar von fiedsch
    Registriert seit
    09.07.2009.
    Ort
    München
    Beiträge
    2.943

    Standard

    Hilft es evtl.

    Code:
    php -d date.timezone='Europe/Berlin'
    zu verwenden?


    Code:
    php  -r 'echo date("e",time());'
    // UTC
    
    php -d date.timezone='Europe/Berlin' -r 'echo date("e", time());'
    // Europe/Berlin
    Contao-Community-Treff Bayern: http://www.contao-bayern.de

  6. #6
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.077
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Denke schon, dass das helfen könnte, hatte ich auch schon dran gedacht. Das würde allerdings nur das akute das Problem beseitigen, aber nicht die Ursache. Bei den anderen PHP-Versionen ist das ja auch nicht gesetzt. Andererseits ist das ein ziemlich akademisches Problem, weil PHP 5.6 sowieso keiner mehr braucht, jedenfalls nicht für Contao. Insofern ist es wohl verzichtbar, die Ursache rauszufinden .
    Ich probiers heute gegen später mal aus ob das den Abbruch vermeidet, momentan habe ich die Test-Subdomain auf PHP 7.4 stehen. Leider schon wieder nur mit FastCGI und kein FPM wie schon bei PHP 7.3. Vielleicht wird es diesmal noch nachgeliefert. Ansonsten muss ich mal nachfragen, ob es Gründe dafür gibt. Bei 7.3 gab es ja anfangs Probleme mit FPM.

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •