Comments (8)
Even though I don't like messing with permissions of folders, I changed them manually. Inside the root folder I give sudo chown -R $USER:$USER .
Don't forget the last dot.
from wordpress-docker-compose.
I also had a similar issue on PHP containers for Laravel. I solved this using an entrypoint script: https://github.com/nezhar/laravel-docker-compose/tree/master/docker/php
I may add this also here in future.
from wordpress-docker-compose.
Also you may try to run the container as an arbitrary user as provided in the docs of the PHP Docker image, as this is the base of the Wordpress image: https://hub.docker.com/_/php/
All you need for this is to extend the environmets of the wordpress service:
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: "${DB_NAME}"
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: "${DB_ROOT_PASSWORD}"
APACHE_RUN_USER: 1000
APACHE_RUN_GROUP: 1000
from wordpress-docker-compose.
Also you may try to run the container as an arbitrary user as provided in the docs of the PHP Docker image, as this is the base of the Wordpress image: https://hub.docker.com/_/php/
All you need for this is to extend the environmets of the wordpress service:
environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_NAME: "${DB_NAME}" WORDPRESS_DB_USER: root WORDPRESS_DB_PASSWORD: "${DB_ROOT_PASSWORD}" APACHE_RUN_USER: 1000 APACHE_RUN_GROUP: 1000
Hi, I've tried adding the "APACHE_RUN_USER: 1000" and "APACHE_RUN_GROUP: 1000" to fix the permission problem, but I get this:
"apache2: bad user name 1000"
Di you have any indication to solve this?
Thanks in advance
from wordpress-docker-compose.
Even though I don't like messing with permissions of folders, I changed them manually. Inside the root folder I give
sudo chown -R $USER:$USER .
Don't forget the last dot.
This solution can fix the issue quickly, thanks a lot @markdimi
from wordpress-docker-compose.
Hi,
I'm testing your amazing job, but I still can't fix that user permissions folders.
For instance with the WP Backoffice, I can't upload medias.
How did you by pass that issue ?
from wordpress-docker-compose.
Even though I don't like messing with permissions of folders, I changed them manually. Inside the root folder I give
sudo chown -R $USER:$USER .
Don't forget the last dot.
Hello,
That's exactly what I finished by doing.
Thanks for your reply !
from wordpress-docker-compose.
@d-castelli haven't tried it but have you tried adding the # before the id and group as specified in the doc nezhar referenced?
from wordpress-docker-compose.
Related Issues (20)
- How to configure for minimal memory usage? HOT 2
- ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied HOT 2
- Make site available to the lan? HOT 5
- Loopback and Rest Issues? HOT 2
- where can i find the "volumes - db_data" and del it? sorry it's so hard for me HOT 1
- Any way to add ssl on this? HOT 10
- WP-CLI: Error establishing a database connection HOT 5
- docker-compose up error (beginner) macos HOT 3
- Cannot Access Site From External Machine - Windows 10 / WSL2 HOT 9
- wsl2 Ubuntu host - cannot update from wp-admin dashboard and wpcli restricted use HOT 1
- Consider linking to a vscode devcontainers / codespaces version
- wp-cli not working until the database is created manually HOT 1
- Run a few installations at the same time on 80 port HOT 4
- What is the difference to wp-env HOT 1
- Specify a port on .env to run db on (when we are running more than one db on a server) HOT 2
- Problem loading page (unable to connect)
- WordPress Redirects to IP Address Instead of Domain HOT 5
- Wordpress very slow
- Error: Your site is unable to reach WordPress.org at 198.143.164.251, and returned the error: cURL error 6: getaddrinfo() thread failed to start HOT 1
- cant install new plugins 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 wordpress-docker-compose.