I'm new in magento. I installed magento in sub folder on server.

created db sucessfully.

But, when I run url on browser it give error that

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

  • you do not provide any details about your server or web server software, but this sounds like the website root folder is not configured to point to your magento2 installation correctly. – paj Jun 13 '17 at 20:36

Could you please check the file and folder permission as given in Magento Docs

Files and Folder Permission in Magento 2

Also Please check in your server for mod_rewrite is enabled in Apache2

  • how can i check? – Rajesh Kumar Jun 13 '17 at 18:14
  • Which OS are you using ? – Suresh S Jun 14 '17 at 1:39
  • you can check it through command "sudo a2enmod rewrite". also check in apache configuration file . open the configuration file check the following line <Directory /var/www/>. Please make sure that "AllowOverride All". then save and restart the apache. – Suresh S Jun 14 '17 at 1:48
  • i am using window 7 – Rajesh Kumar Jun 16 '17 at 8:31
  • are you using XAMPP or any other instance where magento is running? – Suresh S Jun 16 '17 at 10:23

----------Windows configuration ----------------- XAMPP > XAMPP Control Panel > apache config setting

xampp\apache2\conf\httpd.conf open this

#LoadModule rewrite_module modules/mod_rewrite.so

Remove # tag for uncomment.

/xampp/apache/conf/extra/httpd-vhost.conf open this.

Create an virtual host

  DocumentRoot "C:/path/to/your/site"
  ServerName example.local

  CustomLog "C:/path/to/your/site/logs/example.local.access.log" combined
  ErrorLog "C:/path/to/your/site/logs/example.local.error.log"

  <Directory "C:/path/to/your/site">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all

Restart server once.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.