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:
"app/design/adminhtml/default/default/layout/local.xml"

Add below code in local.xml of adminhtml/layout

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

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

Thanks,
Bijal Bhavsar :) :) 
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s