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!

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:
    32
    Likes Received:
    2
    Trophy Points:
    58
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    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.
     
    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