Leave a comment

Protect php.ini file via a Browser

To prevent people to viewing your php.ini file via a  browser: 

# vi /etc/php.ini

<Files php.ini>
Order allow,deny
Deny from all
</Files>

Leave a Reply

Your email address will not be published. Required fields are marked *