client denied by server configuration: app/etc/local.xml

Posted: May 15, 2012 in Magento, Version 1.3.*, Version 1.4.*, Version 1.6.*
client denied by server configuration: PROJECT_DIR/app/etc/local.xml
It seems that magento is testing to see if the file can be accessed each time a page is loaded and alerts
you to the fact that this file contains your MySQL database password is readable.

So it is correct but seems odd that every page should check this filling the log with error messages
instead of just doing it once at the login page.

To resolve the above error not shown in error_log at cpanel

To get rid of this security check, do not attempt to hack the Magento core (as some forum threads have
 suggested in the past). Instead, you can just modify the admin-theme to remove this check.
Open up the following file or create it if it does not exist:

Add below code in local.xml of adminhtml/layout

 <remove name="notification_security" />
 <remove name="notification_survey" />

This removes the blocks notification_security and notification_survey from the backend-pages entirely,
skipping therefor the security check. No core hacks involved. 

Bijal Bhavsar :) :) 

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s