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