#1 2023-05-05 03:54:06

paivadaniel
Member
2023-04-26
8

Cant install Piwigo using Docker

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

 

#2 2023-05-08 14:14:49

nickO
Member
2021-01-11
30

Re: Cant install Piwigo using Docker

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.

Code:

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

All the best,
Nick.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact