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.

How to disable phpsysinfo?

Discussion in 'Security' started by tejli, Sep 17, 2016.

Tags:
  1. tejli

    tejli Member

    Joined:
    Aug 8, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    vienna
    cPanel Access Level:
    Website Owner
    There is a script that shows infos of the server. I want to disable to show the system infos. Here is the script: phpsysinfo.github.io/phpsysinfo/

    How can I disable it without to brake other scripts in server?

    Thanks.
     
    #1 tejli, Sep 17, 2016
    Last edited by a moderator: Sep 17, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You can try adding "phpinfo" to the disable_functions entry in your php.ini file via "Editor Mode" in Web Host Manager:

    "WHM Home » Software » MultiPHP INI Editor"

    Or, with EasyApache 3:

    "WHM Home >> Service Configuration >> PHP Configuration Editor"

    Thank you.
     
    quizknows likes this.
  3. tejli

    tejli Member

    Joined:
    Aug 8, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    vienna
    cPanel Access Level:
    Website Owner
    Still working after adding phpinfo.
    In the other server is not working! It says: This needs access to /proc and /sys to work.

    How to disable /proc and /sys ?
     
  4. tejli

    tejli Member

    Joined:
    Aug 8, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    vienna
    cPanel Access Level:
    Website Owner
    RESELVED:
    chmod to 0400 the proc and sys directory. Am using CSE to chmod(its a great editor & can be accessed under plugins after you install). ;)
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page