fballiano / docker-magento2

Cluster ready Magento2 + Varnish 7 + PHP 8.1 + Redis 6.2 + Elasticsearch 7.17 + SSL
356 stars 164 forks source link

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

Open blopa opened 6 years ago

blopa commented 6 years ago

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?

fballiano commented 6 years ago

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.

nutellinoit commented 6 years ago

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 .
rahulanand77 commented 6 years ago

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

LiamKarlMitchell commented 6 years ago

~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
kr-rob commented 5 years ago

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

fballiano commented 5 years ago

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

bartoszkubicki commented 4 years ago

on linux mint 17.3 can't reproduce this issue