• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Displaying Script Errors

S

subho

Guest
Hi,

I want to turn on the feature which will allow me to see the script errors on the browser.

To further clarify, I have a php script which has got an syntax error, when run on the local setup it display the error i.e. the parse error, but on the live server, the same script just shows up a blank page, no error is shown. I want the error to be shown on the live server too.

Is there any PLESK setting that needs to be set which will turn this feature on?

It will be great if someone can give me some pointers on this.Thanks in advance

-Subho
 
Modify /etc/php.ini and make sure this line is uncommented and the rest of the "error_reporting" lines are commented out:

error_reporting = E_ALL & ~E_NOTICE
 
create an .htaccess file in the folder where the script is running and add the following line to the .htaccess file:

php_flag display_errors on


This will turn on error display only for this folder and not the rest of the server
 
Hello jwdick,

sorry for replying so late, actually i was out of town and cld not check the solution.

But I checked it today, and it worked like a charm !!!! Thanks a lot for the solution.

-Subho
 
Back
Top