Announcement

Collapse
No announcement yet.

Where does PHP store the error log?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Priya Dialani
    replied
    You can use for Linux either

    /var/log/apache2/error.log

    or

    /var/log/httpd/error_log

    As such files are owned by root, you need to use sudo or be root to read it or even to see it.

    Leave a comment:


  • Nimbus
    replied
    Hello Arthur,

    Php stores error logs in /var/log/apache2 if php is an apache2 module.

    You can do this, if you have access to a php.ini file:

    error_log = /var/log/php-scripts.log
    If you are using cPanel, the master log file you can possibly viewing for is stored (by default) at

    /usr/local/apache/logs/error_log

    Leave a comment:


  • Arthur
    started a topic Where does PHP store the error log?

    Where does PHP store the error log?

    I have shared hosting and Cpanel, Apache, PHP is run by fastcgi.
    Can anyone help me to know, where does PHP store the error log?
    Or is there any other way to find the error log on shared hosting?

    FYI : I have access to the php.ini
Working...
X