nginx – Where are PHP8 syntax error logged?
I installed LEMP with PHP8 on Ubuntu 24.04 and was able to host a WordPress website.
The only thing I can’t figure out is where PHP errors are logged.
For example I created a PHP page with an error:
when I open this page browser displays this:
no error messages appear in /var/log/php8.3-fpm.log.
I added
error_log = /var/log/php8-error-log.log
to /etc/php/8.3/fpm/php.ini:
restarted php-fpm service
sudo service php8.3-fpm restart
and opened my page with the error, but the file /var/log/php8-error-log.log was not created at all.
Below I provided my phpinfo():
Read more here: Source link



