0

I'm new to Magento. I have installed Magento in the sub folder on the server.

created DB successfully.

But, when I run URL on the browser it gives the 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.

1
  • 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, 2017 at 20:36

2 Answers 2

0

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

6
  • how can i check? Jun 13, 2017 at 18:14
  • Which OS are you using ?
    – Suresh S
    Jun 14, 2017 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, 2017 at 1:48
  • i am using window 7 Jun 16, 2017 at 8:31
  • are you using XAMPP or any other instance where magento is running?
    – Suresh S
    Jun 16, 2017 at 10:23
0

----------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

<VirtualHost 127.0.0.1:80>
  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
  </Directory>
</VirtualHost>

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.