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.

Eveybody can seen Error_log

Discussion in 'General Discussion' started by sysmanz, Oct 4, 2011.

  1. sysmanz

    sysmanz Member

    Joined:
    Jul 20, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    on my server everybody can view error logs using browser without any password and i don't want it.
    Error log file show up by typing domainname.com/error_log
    How can i close this for all or some of accounts ?!

    Regards
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The error_log file in the account's public_html directory generally comes from PHP error logging. You could disable the following option in /usr/local/lib/php.ini:

    Code:
    log_errors
    However, ideally this option should be on to allow you to determine specific error messages related to your PHP scripts. One alternative would be to simply change permissions on the file so it's not viewable to the public. EX:

    Code:
    # chmod 0600 /home/username/public_html/error_log
    Thank you.
     
Loading...

Share This Page