PHP errors are not displayed

#1
Hello,

I installed OpenLiteSpeed 1.6.14 a day ago and I am experiencing an issue with the PHP errors not displaying.
In addition to that, no error messages are logged in any of the server level or virtual host level logs.

I tried using:

Code:
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
in the beginning of the php scripts but nothing shows on the screen.

I even tried with a more simple case such as:

Code:
<?php
phpinfo(;
?>
No errors are displayed, just an empty page with status code 500.


I tried setting the server log to log level DEBUG, debug level HIGH. It did not work.
1594003439030.png

This is the virtual host level configuration:

1594003493549.png

php info shows:
error_reporting 0

1594004175212.png

1594004481777.png

This is in the content of the php.ini file:

1594004287000.png

I am using CentOS 8.2.2004 and LSPHP 7.3.

What could be the reason?
 
Last edited:
#2
The issue is resolved. I am not sure why the phpinfo(; example was not logged as a parse error but apart from that, I found the reason why errors were not being logged for the particular website.
 
Top