Here is solution to the issue, which comes in magento admin dashboard.
"Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider."
Issue Explanation :-
The issue relates with easy access to configuration file by web, i.e.,
http://sitename/ app/etc/local.xml
And this should be made unreadable by web.
Solution :-
Depending on server apache settings any of the following solution may work.
1. Try changing permissions of app/etc/local.xml to 660. Then check if http://sitename/app/etc/local.xml shows forbidden(or access denied or any error) & then test magento admin dashboard if that error is gone.
2. In case 1 fails, then
Try changing permissions of app/etc/local.xml to 600. Then check if http://sitename/app/etc/local.xml shows forbidden & then test magento admin dashboard if that error is gone.
3. In case, 1 & 2 both fails then lets discuss it further with me, as there might any other security loophole that too has to be fixed.
Useful and informative post here and i get it clear information about this topic here. hosting services
ReplyDeleteperfect solution...no 1 worked for me.
ReplyDeleteThanxxxxxxxx.
thanks... no 2 for me
ReplyDeleteWhen I changed the file permissions and tried to access the site it took me to the installation page and not the site, do you know why this would be?
ReplyDeleteFrnd, i think you have changed the permission such that the local.xml is also not available for read. Read permission must always be given to that file.
DeleteIf read is not allowed it will take you to installation page.
Hope, you find the answer to your question.
If still you couldnot find the answer please mail me or put here your email id so that i can personally solve your problem,
you say "http://sitename/app/etc/local.xml
ReplyDeleteAnd this should be made unreadable by web"
but it does need to be readable by web. Do you mean not writeable?
Hi,
DeleteBy readable i mean here if you type "http://sitename/app/etc/local.xml" in your web browser it shouldnot open up the file in browser. So it should rather be not accessible to the browser or the outer world.
Thanks for the precious comment of yours.
Thanks
Hi,
ReplyDeleteI have tried out both of your above suggestion but not found any change i am still getting that error at backend and also being able to read file by browser.I am using Magento 1.6.2.0 and Ubuntu as my operating system...Need Your Valuable Feedback.
Thanks In Advance..
Hi,
DeleteHave you tried by changing the file(local.xml) permission to read/write.
Donot allow access permission.
Thanks
ya i have change the local.xml permission to read only but don't found any change
DeleteCan you please provide me link of your website.
Deletei m working on local server
Deleteis it get solved as i upload my file on server
ReplyDelete