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.

Disable (hiding) absolute path which appears with php errors

Discussion in 'Security' started by hackboys, Oct 15, 2012.

  1. hackboys

    hackboys Active Member

    Joined:
    Feb 12, 2008
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    8
    Hello.

    Is there anyway to disable absolute path which appears with php errors.

    i.e.

    /home/username/public_html/myscriptfolder/index.php on line 159

    I don't want php shows errors absolute path "/home/username/public_html/".

    With apache possible disable absolute path which appears with php errors?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In WHM type in PHP in top search box, click in result, PHP Configuration Editor. Click Advanced Mode at top of page. Search page with your browser for, display_errors change as needed, scroll down and click save, wait for page to finish loading.

    I think that's what you're looking for.
     
Loading...

Share This Page