Comments (3)
Are they owned by www-data
?
from docker-joomla.
I have the same problem and I can’t figure out how to solve it
All files in the /var/www/html
owned by root
and the chown www-data:www-data -R /var/www/html
does not change the situation
For running container i use docker-compose, with next config:
version: '3'
services:
joomla:
image: joomla
restart: always
ports:
- 80:80
- 443:443
environment:
JOOMLA_DB_HOST: mysql
JOOMLA_DB_PASSWORD: local
JOOMLA_DB_USER: local
JOOMLA_DB_NAME: local
volumes:
- ./html:/var/www/html
depends_on:
- mysql
mysql:
image: "mysql:5.7"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: local
MYSQL_USER: local
MYSQL_PASSWORD: local
ports:
- "3306:3306"
My OS is Windows 10 Pro
Docker version 19.03.8, build afacb8b
docker-compose version 1.25.4, build 8d51620a
from docker-joomla.
I know this is years to late.... but this is now resolved as you can start the container with the correct ownership of this files and so be able to edit the files without any trouble.
version: '2'
services:
mariadb_test:
image: mariadb:latest
container_name: mariadb_test
restart: unless-stopped
environment:
- MARIADB_DATABASE=${VDM_TEST_DB}
- MARIADB_USER=${VDM_TEST_DB_USER}
- MARIADB_PASSWORD=${VDM_TEST_DB_PASS}
- MARIADB_ROOT_PASSWORD=${VDM_TEST_DB_ROOT}
volumes:
- "${VDM_PROJECT_PATH}/test/db:/var/lib/mysql"
networks:
- traefik
joomla_test:
image: joomla:4
container_name: joomla_test
restart: unless-stopped
environment:
- APACHE_RUN_USER=#1000
- APACHE_RUN_GROUP=#1000
- JOOMLA_DB_HOST=mariadb_test:3306
- JOOMLA_DB_NAME=${VDM_TEST_DB}
- JOOMLA_DB_USER=${VDM_TEST_DB_USER}
- JOOMLA_DB_PASSWORD=${VDM_TEST_DB_PASS}
So the ENV keys you will like to use are:
- APACHE_RUN_USER=#1000
- APACHE_RUN_GROUP=#1000
Remember the #
as this is how Apache wants the values, we then in turn update the ownership of the /var/www/html
folder with that ID and GROUPID.
This must correspond to the ID of the user where the folder is mounted and will be editing the files.
from docker-joomla.
Related Issues (20)
- I want to upgrade Apache to latest version. HOT 8
- Configure CI HOT 2
- Connection refused
- Does not run if --network param is used HOT 2
- Configuration files are exposed HOT 3
- "The connection was reset" on fpm images HOT 1
- Improve the user:group setting of all images HOT 2
- I need Docker Joomla image of version 2.15.4 HOT 3
- Upgrade of Joomla from 3.x to 4.x Media Functions do not work HOT 25
- Updating logo
- How to upgrade Joomla? HOT 1
- Git repo of the Docker official image for joomla. See the Docker Hub page for the full readme on how to use this Docker image and for information regarding contributing and issues. The full readme is generated over in docker-library/docs, specifically in docker-library/docs/joomla. See a change merged here that doesn't show up on the Docker Hub yet? Check the "library/joomla" manifest file in the docker-library/official-images repo, especially PRs with the "library/joomla" label on that repo. For more information about the official images process, see the docker-library/official-images readme.
- HTTPS? HOT 2
- Upgrade Joomla with Docker HOT 11
- Complete Deploy of Joomla 4.3 and up HOT 3
- Could not write to the configuration file. HOT 1
- Proposal to Add Environment Variable for Extension Installation HOT 11
- Joomla docker commit and restart HOT 1
- Configuration of Joomla! fails on Azure when attempting to install languages HOT 8
- MySQL Connection Error: Access Denied HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-joomla.