Where are the PHP error messages (error_log) stored?

Marc Wag­ner

Novem­ber 8, 2022

0 min read|

If enab­led, Apa­che stores all PHP error mes­sa­ges of your web­site in a sepa­ra­te log file. This includes war­nings, hints and also errors, depen­ding on which log level you have defi­ned befo­re. Bes­i­de the stan­dard loca­ti­ons for the error.log you can also defi­ne an indi­vi­du­al loca­ti­on, for exam­p­le with PHP, you can find more about that here.

On Linux, Apa­che places the error.log file here:

/var/log/apache2/error.log

Alter­na­tively you can find the error mes­sa­ges here:

/var/www/vhosts/system/{domain}/logs/error_log
88e86fcb816eff22bc917094df2862d8dd5c0e978b333e6dd5f36f808990c261 96

Arti­kel von:

Marc Wag­ner

Hi Marc here. I’m the foun­der of Forge12 Inter­ac­ti­ve and have been pas­sio­na­te about buil­ding web­sites, online stores, appli­ca­ti­ons and SaaS solu­ti­ons for busi­nesses for over 20 years. Befo­re foun­ding the com­pa­ny, I alre­a­dy work­ed in publicly lis­ted com­pa­nies and acqui­red all kinds of know­ledge. Now I want to pass this know­ledge on to my cus­to­mers.

Hast du eine Fra­ge? Hin­ter­lass bit­te einen Kom­men­tar