php logs

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, Aug 5, 2021.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good day,

    Running ISPConfig 3.2 on Ubuntu 20.
    My developper has asked for more PHP logs. I understand we see PHP access and error logs from Apache, but I'm trying to get the specific PHP logs. This is a special site running PHP 5.6.

    Here's what I did (doesn't seem to work):

    1) I did a touch on /var/log/php-scripts.log
    -rw-r--r-- 1 root root 0 Aug 4 21:46 php-scripts.log

    2) I aded this in /etc/php/5.6/cgi/php.ini
    error_log = /var/log/php-scripts.log

    3) service apache2 reload

    If I create a page with an error in it, I don't get anything in the php-scripts.log.

    Any idea on what I'm missing?
    Would I be better putting this in Custom php.ini settings (error_log = /var/log/php-scripts.log) of the site?

    Thank you,
    JP
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    PHP logs to the error.log of the website.

    That's not a good idea, especially as it's not even a site-specific log. I recommend undoing this. You find everything already in the error.log of the website.
     
  3. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    OK, thank you.

    JP
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Btw. if you like to see more log info from PHP, change the log level.
     

Share This Page