phpmyadmin Failed to set session cookie. Maybe you are using HTTP instead of HTTPS

后端 未结 16 1987
小鲜肉
小鲜肉 2020-12-05 14:34

I install PHP, Apache, and MySQL done and worked. When I finish installing Phpmyadmin, then open it has an error.

Failed to set session cookie. Maybe you are         


        
16条回答
  •  爱一瞬间的悲伤
    2020-12-05 15:00

    I had this issue because I am hosting phpmyadmin behind an nginx reverse proxy, using Docker Compose. In my docker-compose.yml file I had:

    db-admin:
        # https://hub.docker.com/r/phpmyadmin/phpmyadmin/
        image: phpmyadmin/phpmyadmin:latest
        restart: always
        environment:
          - PMA_ARBITRARY=1
          - PMA_HOST=http://db
          - PMA_PORT=3306
          - PMA_ABSOLUTE_URI=http://localhost/db-admin/  # necessary because the db-admin is hosted behind a reverse proxy.
        ports:
          - 8084:80
        depends_on:
          - db
        networks:
          - shared-network
    

    Due to the reverse-proxy and the PMA_ABSOLUTE_URI, I can only use this application on http://localhost/db-admin, not on http://localhost:8084.

提交回复
热议问题