Ankündigung

Einklappen
Keine Ankündigung bisher.

Nach Neuinst Raspbinl. php apache2 php.ini kein display_errors = on

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Nach Neuinst Raspbinl. php apache2 php.ini kein display_errors = on

    Hallo,

    ich vor einiger zeit meinen Raspberry neu installieren müssen inl. mysql (mariadb), php und apache2

    ich verwende ein paar virtuelle http-server mit eigenen logs.
    Wenn ich in deren http-serverroot die info.php aufrufe so erhalte ich stets diplay_errors = Off

    egal was ich in der php.ini einstelle oder auch in der php-seite selbst schreibe, display_errors bleibt auf off

    das ist meine Konfiguration aus der phpinfo Ausgabe
    HTML-Code:
       PHP Version 7.0.19-1    
    System Linux printer2 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l Build Date May 11 2017 14:04:47 Server API FPM/FastCGI
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /etc/php/7.0/fpm
    Loaded Configuration File /etc/php/7.0/fpm/php.ini
    Scan this dir for additional .ini files /etc/php/7.0/fpm/conf.d

    HTML-Code:
       display_errors Off Off
    display_startup_errors Off Off
    das steht in der /etc/php/7.0/fpm/php.ini

    HTML-Code:
    ; display_errors
    Default Value: Off
    Development Value: On
    Production Value: Off
    
    ; display_startup_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: Off
    
    ; error_reporting
    ;   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    ;   Development Value: E_ALL
    ;   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
    
    ; html_errors
    ;   Default Value: On
    ;   Development Value: On
    
    ; log_errors
    ;   Default Value: Off
    ;   Development Value: On
    ;   Production Value: On
    
    ; max_input_time
    ;   Default Value: -1 (Unlimited)
    ;   Development Value: 60 (60 seconds)
    ;   Production Value: 60 (60 seconds)
    
    ; output_buffering
    ;   Default Value: Off
    ;   Development Value: 4096
    ;   Production Value: 4096
    
    ; register_argc_argv
    ;   Default Value: On
    
    .
    .
    .
    .
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/display-errors
    error_reporting = E_ALL
    display_errors = On
    
    was kann das sein?

    Grüße selfmade

  • #2
    Eigentlich müsste sich PHP über die fehlerhafte INI-Datei beschweren. Schon mal ins Error-Log geschaut?

    Kommentar


    • #3
      Das hat nichts mit der Programmiersprache PHP zu tun ist viel mehr ein Problem der Serverumgebung.
      Mehr dazu unter
      https://stackoverflow.com/questions/...ry-support-php

      Kommentar


      • #4
        das steht im error.log

        Code:
        [Wed Feb 20 13:16:28.353646 2019] [authz_core:debug] [pid 4178:tid 2909795376] mod_authz_core.c(809): [client 192.168.2.22:55774] AH01626: authorization result of Require all granted: granted
        [Wed Feb 20 13:16:28.354974 2019] [authz_core:debug] [pid 4178:tid 2909795376] mod_authz_core.c(809): [client 192.168.2.22:55774] AH01626: authorization result of <RequireAny>: granted
        [Wed Feb 20 13:16:28.356253 2019] [proxy:debug] [pid 4178:tid 2909795376] mod_proxy.c(1228): [client 192.168.2.22:55774] AH01143: Running scheme unix handler (attempt 0)
        [Wed Feb 20 13:16:28.357722 2019] [proxy_fcgi:debug] [pid 4178:tid 2909795376] mod_proxy_fcgi.c(913): [client 192.168.2.22:55774] AH01076: url: fcgi://localhost/var/www/html/info.php proxyname: (null) proxyport: 0
        [Wed Feb 20 13:16:28.358850 2019] [proxy_fcgi:debug] [pid 4178:tid 2909795376] mod_proxy_fcgi.c(920): [client 192.168.2.22:55774] AH01078: serving URL fcgi://localhost/var/www/html/info.php
        [Wed Feb 20 13:16:28.360252 2019] [proxy:debug] [pid 4178:tid 2909795376] proxy_util.c(2156): AH00942: FCGI: has acquired connection for (*)
        [Wed Feb 20 13:16:28.361469 2019] [proxy:debug] [pid 4178:tid 2909795376] proxy_util.c(2209): [client 192.168.2.22:55774] AH00944: connecting fcgi://localhost/var/www/html/info.php to localhost:8000
        [Wed Feb 20 13:16:28.363166 2019] [proxy:debug] [pid 4178:tid 2909795376] proxy_util.c(2246): [client 192.168.2.22:55774] AH02545: fcgi: has determined UDS as /run/php/php7.0-fpm.sock
        [Wed Feb 20 13:16:28.364370 2019] [proxy:debug] [pid 4178:tid 2909795376] proxy_util.c(2418): [client 192.168.2.22:55774] AH00947: connected /var/www/html/info.php to httpd-UDS:0
        [Wed Feb 20 13:16:28.365968 2019] [proxy:debug] [pid 4178:tid 2909795376] proxy_util.c(2786): AH02823: FCGI: connection established with Unix domain socket /run/php/php7.0-fpm.sock (*)
        [Wed Feb 20 13:16:28.431967 2019] [proxy:debug] [pid 4178:tid 2909795376] proxy_util.c(2171): AH00943: FCGI: has released connection for (*)
        [Wed Feb 20 13:16:28.436870 2019] [deflate:debug] [pid 4178:tid 2909795376] mod_deflate.c(853): [client 192.168.2.22:55774] AH01384: Zlib: Compressed 89453 to 23395 : URL /info.php
        probiere es jetzt unter dem server aus der auf port 80 läuft
        dort zeigt info.php das

        Code:
         
        display_errors On Off
        display_startup_errors Off Off

        oooohh
        das hat mit Virtual Directory Support" is disabled
        zu tun?

        wenn dann werde ich später gleich mal danach suchen


        edit: sofern ich den link oben richtig gelesen habe,
        https://stackoverflow.com/questions/...ry-support-php
        weiß ich gar nicht ob ich hier was ändern muss/sollte

        wie kann ich aber erreichen das meine virtuellen server sowie PHp richtig funktioniert?

        Kommentar


        • #5
          Das ist der Webserver-Log und nicht der PHP-Log.

          Jedenfalls sind diese 3 Zeilen fehlerhaft:
          Code:
          Default Value: Off
          Development Value: On
          Production Value: Off

          Kommentar

          Lädt...
          X