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.

php.ini in public_html

Discussion in 'Security' started by Pyone, Sep 24, 2016.

Tags:
  1. Pyone

    Pyone Member

    Joined:
    Oct 9, 2014
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hello,

    I found "php.ini" file in the public_html folder of my site. I found out that this php.ini file can be easily downloaded by www.mydomain.com/php.ini.

    My site is hosted in shared hosting.
    And I didn't put that "php.ini" file in public_html.

    I'm afraid that it should affect the security of my site.
    What should I do about it?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    PHP.ini files do not contain any identifying information about your website or data. It's the configuration file for PHP. Your hosting provider may have placed that file in your public_html directory to allow for custom PHP configuration settings. The following document helps to explain how this works:

    How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation

    Thanks!
     
  3. dncosts

    dncosts Registered

    Joined:
    Sep 28, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    However, placing php.ini file under public_html/ directory seems a security risks.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page