1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Displaying Script Errors

Discussion in 'Plesk for Linux - 8.x and Older' started by subho, Oct 12, 2006.

  1. subho

    subho Guest

    0
     
    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
     
  2. dw604

    dw604 Guest

    0
     
    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
     
  3. jwdick

    jwdick Guest

    0
     
    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
     
  4. subho

    subho Guest

    0
     
    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
     
Loading...