Join the community today
Become a Member

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:
    1:30 AM
    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

    30,966
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    4:30 AM
    Nginx 1.13.x
    MariaDB 5.5
    500 errors are in access.log ;)
     
  3. erfolgskompass

    erfolgskompass New Member

    13
    1
    3
    Jun 8, 2016
    Ratings:
    +10
    Local Time:
    1:30 AM
    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

    30,966
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    4:30 AM
    Nginx 1.13.x
    MariaDB 5.5
    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:
    1:30 AM
    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

    30,966
    6,919
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,422
    Local Time:
    4:30 AM
    Nginx 1.13.x
    MariaDB 5.5