Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

error_log location

Discussion in 'General Discussion' started by esaesa, May 2, 2015.

  1. esaesa

    esaesa Member

    Joined:
    Mar 6, 2014
    Messages:
    17
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Hi
    My configration is centos 6.6, WHM 11.48.3 and SuPHP
    Currently php scripts errors are logged in separate files in script directory. How to make them in 1- one file under each account
    2- in one file at server level
    The server is still in development mode as follow

    display_errors=on
    error_log=error_log
    error_reporting=E_ALL & ~E_DEPRECATED
    log_errors=on

    Thanks
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,441
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You can modify "error_log=error_log" so that it uses an actual path to a global error_log file. EX:

    Code:
    error_log=/root/error_log
    It's not possible to have PHP send the error output through Apache to multiple log files without additional custom logging modules as far as I know.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice