Prestashop: Can not install in docker (nginx + fpm)

Created on 17 May 2020  路  8Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

Can not install prestashop (develop) in docker (nginx + fpm) configuration.

Expected behavior

A working configuration.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Git clone Prestashop
  2. Go to docs/docker/nginx_fpm/
  3. Change nginx port to 8081
  4. Up project docker-compose up
  5. Point browser to few pages and see errors:
  • / - 403 Forbidden
  • /install/ - 500 Internal server error
  • /install/index.php - 500 Internal server error

Logs
In nginx container logs:

2020/05/17 14:56:26 [error] 6#6: *19 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: MY_IP, server: _, request: "GET /favicon.ico HTTP/1.1", host: "HOST:8081", referrer: "http://HOST:8081/"
MY_IP - - [17/May/2020:14:56:26 +0000] "GET /favicon.ico HTTP/1.1" 500 595 "http://HOST:8081/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
2020/05/17 14:56:37 [info] 6#6: *20 client closed connection while waiting for request, client: MY_IP, server: 0.0.0.0:80
2020/05/17 14:56:42 [error] 6#6: *21 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: MY_IP, server: _, request: "GET /favicon.ico HTTP/1.1", host: "HOST:8081", referrer: "http://HOST:8081/install"
MY_IP - - [17/May/2020:14:56:42 +0000] "GET /favicon.ico HTTP/1.1" 500 595 "http://HOST:8081/install" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
2020/05/17 14:56:53 [info] 6#6: *22 client closed connection while waiting for request, client: MY_IP, server: 0.0.0.0:80
2020/05/17 14:56:53 [error] 6#6: *23 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: MY_IP, server: _, request: "GET /favicon.ico HTTP/1.1", host: "HOST:8081", referrer: "http://HOST:8081/install/index.php"
MY_IP - - [17/May/2020:14:56:53 +0000] "GET /favicon.ico HTTP/1.1" 500 595 "http://HOST:8081/install/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
2020/05/17 14:56:53 [error] 6#6: *24 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php&", client: MY_IP, server: _, request: "GET /install/index.php HTTP/1.1", host: "HOST:8081"
MY_IP - - [17/May/2020:14:56:53 +0000] "GET /install/index.php HTTP/1.1" 500 595 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"
2020/05/17 14:56:54 [error] 6#6: *25 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: MY_IP, server: _, request: "GET /favicon.ico HTTP/1.1", host: "HOST:8081", referrer: "http://HOST:8081/install/index.php"
MY_IP - - [17/May/2020:14:56:54 +0000] "GET /favicon.ico HTTP/1.1" 500 595 "http://HOST:8081/install/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"

Additional information

  • Repository branch: develop (03032d6adb19836240047b5658988f1e64c823ee)
  • PrestaShop version: latest
  • PHP version: latest
Bug Fixed IN

All 8 comments

Thanks for opening this issue! We will help you to keep its state consistent

Also, tried ./prestashopCli.sh:

./prestashopCli.sh --clone
./prestashopCli.sh -b 1.7.6.x -v 1.7.6.5 -d nginx_fpm
cd nginx_fpm/prestashop
docker-compose up

And that fails too with different errors: vendor/ is empty at most cases

@PrestaShop/prestashop-core-developers can you check this issue :) ?

Hi everyone.
AFAIK, we need to clean this directory, many parts of it are outdated :disappointed:

Ping @PierreRambaud What should we do on this issue ?

@Progi1984 Make sure we can remove the docs directory, all documents not in the devdocs should be on it

@PierreRambaud Done in #20581

The nginx configuration has moved to the devdoc, feel free to upgrade the doc if needed:
https://devdocs.prestashop.com/1.7/basics/installation/nginx/

Was this page helpful?
0 / 5 - 0 ratings