This article discusses a problem that may occur when you try to access the Magento administration console, as well as how to resolve it.
When you try to access the Magento administration console, you receive the following error message in your web browser:
Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider.
This problem occurs because file permissions are set too permissively, or because there is a missing .htaccess file in the app subdirectory of the Magento installation.
To resolve this problem, follow these steps:
Order deny,allow Deny from all
Confirm that file permissions are set correctly. Generally, directories should have permissions set to 755 (read, write, and execute permissions for the user, and read and execute permissions for the group and world). Files should have permissions set to 644 (read and write permissions for the user, and read permissions for the group and world).
You can change the permissions for all of the files and directories in your Magento installation by using the command line. To do this, follow these steps:
find . -type f -exec chmod 644 {} \;
Type the following command:
find . -type d -exec chmod 755 {} \;
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.