php.ini in public_html

Pyone

Member
Oct 9, 2014
10
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
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!