docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

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

Open blopa opened this issue 6 years ago • 7 comments

Hello.

I tried following the instructions but ended up unable to access the magento store. My current setup is:

/var/local/docker/docker-magento2-master: everything downloaded from this Github project /var/local/docker/magento2: magento2 downloaded from M2's github project

And that's it. Didn't edited anything. entered folder docker-magento2-master and ran docker-compose up -d. After that, when I try to access http://magento2.docker/ it gives the following error:

Forbidden

You don't have permission to access / on this server. Apache/2.4.10 (Debian) Server at magento2.docker Port 80

What am I doing wrong?

blopa avatar Nov 11 '17 02:11 blopa

can you try downloading magento from the magento.com website? if you downloading from github you've to "compose update" and other things before you can use it.

fballiano avatar Nov 11 '17 12:11 fballiano

Or you can install magento via composer

Just login on apache container

docker-compose exec --user www-data apache composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .

nutellinoit avatar Jan 19 '18 16:01 nutellinoit

I downloaded it from magento.com, installed is using the command line and getting the same error. Is there any permission settings needed?

rahulanand77 avatar May 21 '18 04:05 rahulanand77

~How can I compose update, is there a way to get a terminal into the apache/php docker to run that command?~

docker exec -it magento2_apache_1 bash
composer update

LiamKarlMitchell avatar Jun 02 '18 09:06 LiamKarlMitchell

I had the same problem with my symfony project while using docker. The problem was that the .htaccess file was missing in the web folder. You can create one by your self or you can install symfony/apache-pack with composer if you use symfony. An exmaple for creating your own .htaccess file can be found in the symfony documentation for web server configuration

kr-rob avatar Jun 27 '19 10:06 kr-rob

Somebody still having this problem? I can never reproduce it on mac, without any particular privilege setting on any folder

fballiano avatar Aug 06 '19 11:08 fballiano

on linux mint 17.3 can't reproduce this issue

bartoszkubicki avatar Dec 01 '19 22:12 bartoszkubicki