OK,
I've been developing PHP apps since PHP3. Not saying I'm an expert, but I AM seasoned! I have been running my own servers for over 10 years and on every system, I've been able to display and debug using PHP errors.
This is my first PLESK server and I've spent the last couple of days kicking the tires and looking for a solution and am amazed that it has been an issue for a LONG time for others yet I haven't been able to find an answer.
On my new system, according to phpinfo...
Local - Master
error_reporting E_ALL | E_STRICT - 22519
display_errors On - On
display_startup_errors On - On
syntax error on page yields blank page...
Created .htaccess file with these directives:
php_value display_startup_errors On
php_value display_errors On
Still, no display
Here is the actual php script:
syntaxerror here
ini_set('error_reporting', E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
ini_set('display_errors', 'On');
ini_set('display_startup_errors', 'On');
error_reporting(E_ALL|E_STRICT);
echo "Error Reporting: " . error_reporting();
Still Nothing....
I REMOVE the syntax error and I get: Error Reporting: 0
I can only conclude that Plesk is somehow disabling the ability to turn ON error reporting.
Now, I understand that displaying errors on a production server is frowned upon... but... I am a developer and I think I should have the right to display errors on my own server if I want to!
PLEASE, someone tell me I'm wrong and how to turn on error reporting! I have no hair left!
OS: Linux 2.6.32-220.13.1.el6.x86_64
Panel: 10.4.4 Update #29
Thanks in advance.
Brian
I've been developing PHP apps since PHP3. Not saying I'm an expert, but I AM seasoned! I have been running my own servers for over 10 years and on every system, I've been able to display and debug using PHP errors.
This is my first PLESK server and I've spent the last couple of days kicking the tires and looking for a solution and am amazed that it has been an issue for a LONG time for others yet I haven't been able to find an answer.
On my new system, according to phpinfo...
Local - Master
error_reporting E_ALL | E_STRICT - 22519
display_errors On - On
display_startup_errors On - On
syntax error on page yields blank page...
Created .htaccess file with these directives:
php_value display_startup_errors On
php_value display_errors On
Still, no display
Here is the actual php script:
syntaxerror here
ini_set('error_reporting', E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
ini_set('display_errors', 'On');
ini_set('display_startup_errors', 'On');
error_reporting(E_ALL|E_STRICT);
echo "Error Reporting: " . error_reporting();
Still Nothing....
I REMOVE the syntax error and I get: Error Reporting: 0
I can only conclude that Plesk is somehow disabling the ability to turn ON error reporting.
Now, I understand that displaying errors on a production server is frowned upon... but... I am a developer and I think I should have the right to display errors on my own server if I want to!
PLEASE, someone tell me I'm wrong and how to turn on error reporting! I have no hair left!
OS: Linux 2.6.32-220.13.1.el6.x86_64
Panel: 10.4.4 Update #29
Thanks in advance.
Brian