1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

No PHP Errors With New Plesk Server

Discussion in 'Site & Server Administration' started by brandondrury, Jan 5, 2007.

  1. #1
    Hello,

    I just fired up a new Plesk server yesterday. I'm doing some php scripting and I'm pretty much a beginner. I have errors constantly, but always work through it.

    Well, on the new server, I've noticed that I'm not gettin getting any errors at all, even when I intentionally cause problems.

    I'm guessing there is a setting to turn this on. What would this be?

    Is this something I set in Plesk?

    Brandon
     
    brandondrury, Jan 5, 2007 IP
  2. thejustbiz

    thejustbiz Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1.check whether safe mode is on and of course whether you have got php on in setup..
    2. put the following code at the top of the page..

    error_reporting(2047);
    ini_set("display_errors",1);

    then it will you the errors.
     
    thejustbiz, Jan 5, 2007 IP
  3. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #3
    check php.ini for error_log etc.
     
    agnivo007, Jan 6, 2007 IP
  4. brandondrury

    brandondrury Peon

    Messages:
    375
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It turns out that error reporting is disabled by default by Plesk.

    Changing that has been a problem, because I'm not sure if EV1 ever sent me the root user/pass. Oh well, that's a different problem altogether.

    This looks like a great solution. I'll just put this in my navigation header that I include on every page and see if that fixes it.

    Thanks!

    Brandon
     
    brandondrury, Jan 6, 2007 IP
  5. brandondrury

    brandondrury Peon

    Messages:
    375
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm. It didn't seam to make a difference. It looks like I'll need to dig deeper to get error reporting to work.

    Brandon
     
    brandondrury, Jan 6, 2007 IP
  6. thejustbiz

    thejustbiz Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i think you can change the global settings.. try this in your .htaccess

    php_value display_errors On
     
    thejustbiz, Jan 8, 2007 IP
  7. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #7
    agnivo007, Jan 8, 2007 IP
  8. dudethat

    dudethat Member

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #8
    Hi

    I came to this forum after searching for the same problem you are having. I have been so frustrated by this with no help what so ever from my hosting provider. I swear they dont know what im talking about cos i get completely unrelated responses when i email them...its been driving me up the wall:mad:

    To top it off i have just found the solution by experimentation in about five minutes...why oh why they could not have told me this i do not know. Its this simple.

    In the plesk control panel for your domain you have a few sets of icons for different tasks.

    Click the setup icon under Hosting;

    Under Services the second to last option is Custom Error Documents and you probably find the check box is ticked.

    Untick it and click ok at the foot of the page. Job done

    :D
     
    dudethat, Jan 15, 2008 IP
  9. Denn

    Denn Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks for giving the solution dudethat
     
    Denn, Jan 19, 2008 IP