Where are the PHP error messages (error_log) stored?

Marc Wagner, November 8, 2022

If enabled, Apache stores all PHP error messages of your website in a separate log file. This includes warnings, hints and also errors, depending on which log level you have defined before. Beside the standard locations for the error.log you can also define an individual location, for example with PHP, you can find more about that here.

On Linux, Apache places the error.log file here:

/var/log/apache2/error.log

Alternatively you can find the error messages here:

/var/www/vhosts/system/{domain}/logs/error_log
Avatar of Marc Wagner
Marc Wagner

Hi Marc here. I'm the founder of Forge12 Interactive and have been passionate about building websites, online stores, applications and SaaS solutions for businesses for over 20 years. Before founding the company, I already worked in publicly listed companies and acquired all kinds of knowledge. Now I want to pass this knowledge on to my customers.

Similar Topics

Comments

Leave A Comment

Title