Just a very quick question about the php.ini file. I created my own mypp.ini file and it works fine if I put it in my public_html directory. However, the problem is that it can be explicitly viewed in the browser through HTTP requests.
So, I'm trying to move it outside my public_html directory, but it doesn't seem to work when it is outside of my public_html.
I know that I could set the following in my .htaccess so as not to read:
<Files php.ini>
Order allow,deny
Deny from all
</Files>
However, I do not want to do this, since my php.ini can still be cached by Google if it is in the "public_html" directory. Are there any suggestions to make it work outside of my public_html?
I am running an Apache server. Thanks for any suggestions.
source
share