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.

error_log location

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

  1. esaesa

    esaesa Member

    Joined:
    Mar 6, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page