Welcome to Centmin Mod Community
Register Now

Nginx empty error log

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by erfolgskompass, Jun 10, 2016.

  1. erfolgskompass

    erfolgskompass New Member

    13
    1
    3
    Jun 8, 2016
    Ratings:
    +10
    Local Time:
    4:29 PM
    I am trying to install piwik


    The system check during installation shows a 500 error in one of the tests.

    However the error file in the log directory is empty while the access file states the correct value

    Code:
     "GET /piwik.php?url=http://example.com HTTP/1.1" 500 5
    Why doesn't the error appear in the error log file to troubleshoot the problem?
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,247
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    7:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    500 errors are in access.log ;)
     
  3. erfolgskompass

    erfolgskompass New Member

    13
    1
    3
    Jun 8, 2016
    Ratings:
    +10
    Local Time:
    4:29 PM
    ok, and how do I figure out the problem that PHP reported?

    I can't find the correct logfile anywhere...
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,247
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    7:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    access.log and error.log in vhost listed paths at
    Code (Text):
    access_log /home/nginx/domains/domain.com/log/access.log combined buffer=256k flush=60m;
    error_log /home/nginx/domains/domain.com/log/error.log;
    
     
  5. erfolgskompass

    erfolgskompass New Member

    13
    1
    3
    Jun 8, 2016
    Ratings:
    +10
    Local Time:
    4:29 PM
    The file I was looking for is located here:

    Code:
    tail -f /var/log/php-fpm/www-php.error.log
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,247
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    7:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+