Page MenuHomePhabricator

Install using SQLite results in "Access denied" for /var/www/data/
Closed, InvalidPublic

Description

I have tried to install the docker image to my server using a SQLite Database. I got an error telling me that i am not allowed to access /var/www/data which is the default directory for storing the SQLite.

A workaround is to connect into the running docker container using
docker exec -i -t <> /bin/bash

and fix access to directory using

chown www-data /var/www/data

Event Timeline

dbarratt changed the task status from Open to Stalled.Oct 8 2018, 8:44 PM

yes i am using

version: '3'

services:
  mediawiki:
    build: .
    restart: always
    networks:
      - traefik_net
    volumes:
      - ./html:/var/www/html
      - ./data:/var/www/data

networks:
  traefik_net:
    external: true

I would recommend mounting a volume rather than mounting to the host as that should resolve your problem. I don't think this is a problem with this container, but feel free to open this issue back up if there's something that should be changed in this container.