The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel PHP Error log empty

Discussion in 'General Discussion' started by Delano, Sep 18, 2015.

  1. Delano

    Delano Registered

    Joined:
    Sep 18, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Veenendaal
    cPanel Access Level:
    Root Administrator
    In my C-Panel + WHM installation the error log is always empty. For some reason it creates a brand new one in the document root.

    The setup I'm using is one with suPHP prehaps that has something to do with it. I've checked the php error log value in the php configuratior and it says error_log = error_log.

    Since the configuration is global for each user, I can't just say /home/%user%/logs/error_log.

    How am I suppose to handle this?

    Thanks in advance!
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    509
    Likes Received:
    64
    Trophy Points:
    28
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    The php.ini will specify where the error_log is held. Since with that directive (error_log = error_log), this means that if there ARE errors, those errors will be send to "${PWD}/error_log". So if the PHP application is executed from '/home/${user}/public_html', the error_log in public_html will be populated in the event of PHP errors.

    The ACTUAL cPanel PHP error_log (/usr/local/cpanel/logs/error_log) is for cPanels internal PHP only, and not Apache's PHP.

    I hope this helps!
     
Loading...

Share This Page