Hello-I'm trying to setup a new install using the linuxserver docker image, to run in parallel but on a different port as my existing piwigo install. Different user base, different needs, etc seem to make this make sense.
I can get the docker image installed, and get to the install screen, but on clicking install I get a http 500.
I'm trying to determine if it is a file permissions issue or access to the db which is on the docker host;
What is the sequence of operations after submitting the db information and admin login?
1: Write files, then connect to the db and create tables?
2: Connect to the DB and create tables, then write files?
I can see that my DB does not get new tables created, so that step does not happen. I'm looking for guidance on where to start with root cause.
Thanks!
Offline
1. write config, create db
See https://github.com/Piwigo/Piwigo/blob/7 … l.php#L328
Offline
Thanks!
Given that pointer, I figured out that I first needed to fix the permissions, then I still had an issue accessing the DB.
I ended up using portainer to make this stack:
--------
version: "3.7"
services:
mariadb:
image: lscr.io/linuxserver/mariadb:latest
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- MYSQL_ROOT_PASSWORD=<somepassword>
- MYSQL_DATABASE=piwigo #optional
- MYSQL_USER=admin #optional
- MYSQL_PASSWORD=<somepassword> #optional
- REMOTE_SQL=http://URL1/your.sql,https://URL2/your.sql #optional
volumes:
- <wherever you put your docker configs>/mariadb/config:/config
ports:
- 3306:3306
restart: unless-stopped
piwigo:
image: lscr.io/linuxserver/piwigo:latest
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
volumes:
- <wherever you put your docker configs>/config:/config
- <wherever you put your docker configs>/piwigo/gallery:/gallery
ports:
- <incoming port>:80
restart: unless-stopped
for the db server, all I needed was 'mariadb'
Offline