Piwigo version: 13.6.0
PHP version: 8.1.2-1ubuntu2.11
MySQL version: Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64)
Piwigo URL: localhost:81
I just can't install Piwigo using Docker on my localhost.
I'm filling in the following in my stack editor:
---
version: "2.1"
services:
piwigo:
image: lscr.io/linuxserver/piwigo:latest
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=America/Sao_Paulo
volumes:
- /media/Cursos/piwigo/conf:/media/Cursos/piwigo/conf
- /media/Cursos/piwigo/gallery:/media/Cursos/piwigo/gallery
ports:
- 81:80
restart: unless-stopped
And access localhost:81 and fill in the database data, as in the image below: https://i.imgur.com/jhIsllA.png
I created the database table in phpmyadmin (piwigo_db), and my database username and password are correctly filled in.
When clicking to start installation, error 500 occurs:
This page isn’t working0.0.0.0 is currently unable to handle this request.
HTTP ERROR 500
Previously I had already tried to install mysql and piwigo together with docker-compose, and the same error occurred.
The apache2 error log does not update to show what is causing the 500 error, accessing /var/log/apache2/access.log, it appears:
::1 - - [04/May/2023:22:37:50 -0300] "POST /phpmyadmin/index.php?route=/ HTTP/1.1" 200 2889 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
I've already scoured several topics from other users who had an error 500 in this step, however, nothing solved my problem, for example, I already have the php-mysql mod installed and I already changed the permissions of the /media/Courses/piwigo folder to 777, and it didn't work.
I'm thinking of giving up Piwigo because for more than 10 days I haven't been able to install it.
Offline
I'm running Piwigo on OpenMediaVault with Docker and here is my stack in case that helps you, all sensitive information is marked <redacted>. I use DuckDNS and SWAG for LAN access.
version: "2.1"
services:
mariadb:
image: ghcr.io/linuxserver/mariadb
container_name: piwigodb
network_mode: swag_default
environment:
- PUID=1000
- PGID=100
- MYSQL_ROOT_PASSWORD=<redacted>
- MYSQL_DATABASE=piwigo
- MYSQL_USER=piwigo
- MYSQL_PASSWORD=<redacted>
volumes:
- /NAS/appdata/piwigoconfig/db:/config
- /etc/localtime:/etc/localtime
ports:
- 3301:3306
restart: unless-stopped
piwigo:
image: ghcr.io/linuxserver/piwigo
container_name: piwigo
network_mode: swag_default
environment:
- PUID=1000
- PGID=100
volumes:
- /NAS/appdata/piwigoconfig/data:/config
- /NAS/appdata/piwigo/gallery:/gallery
ports:
- 85:80
restart: unless-stoppedAll the best,
Nick.
Offline
@paivadaniel, a docker container lives in a network. Your database must be accessable for your Piwigo container. Therefore, you could create a docker network and add the database and Piwigo containers to it. Then, instead of using localhost as the database host, choose the name of your database container.
You can use docker inspect to see the network(s) the container is part of and their names/IPs.
You can create the network with docker network create -d bridge piwigo and use an external network in your docker compose file. Or you let docker compose create/manage it for you.
Last edited by scw (2025-07-30 14:31:02)
Offline