-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No write permission and no other selectable languages #426
Comments
So when just the subdirectories of However mounting Also you'll probably want to persist the mariadb database to the host. Changing the wordpress volume to: volumes:
- ./wp-content:/var/www/html/wp-content Checking folders and permissions: $ mkdir -p wp-content/{plugins,themes} && sudo chown -R 33:33 wp-content
$ docker-compose up -d
Creating network "test_default" with the default driver
Creating test_wordpress_1 ... done
Creating test_mariadb_1 ... done
$ time grep -qi 'apache2 -D FOREGROUND' <(docker-compose logs -f 2>&1)
real 0m20.986s
user 0m0.000s
sys 0m0.009s
$ docker exec test_wordpress_1 ls -al | grep wp-content
drwxrwxr-x 7 www-data www-data 4096 Sep 3 18:20 wp-content
$ docker exec test_wordpress_1 ls -al wp-content
total 32
drwxrwxr-x 7 www-data www-data 4096 Sep 3 18:20 .
drwxrwxrwx 5 www-data www-data 4096 Sep 3 18:18 ..
-rw-r--r-- 1 www-data www-data 28 Jan 8 2012 index.php
drwxrwxrwx 4 www-data www-data 4096 Sep 3 18:19 languages
drwxr-xr-x 3 www-data www-data 4096 Jun 18 17:50 plugins
drwxr-xr-x 5 www-data www-data 4096 Jun 18 17:51 themes
drwxrwxrwx 2 www-data www-data 4096 Sep 3 18:19 upgrade
drwxrwxr-x 3 www-data www-data 4096 Sep 3 18:19 uploads And then trying with mounting just the subdirectories and ensuring permissions (your docker-compose file): $ mkdir plugins themes && sudo chown 33:33 plugins themes
$ docker-compose up -d
Creating network "test_default" with the default driver
Creating test_mariadb_1 ... done
Creating test_wordpress_1 ... done
$ time grep -qi 'apache2 -D FOREGROUND' <(docker-compose logs -f 2>&1)
real 0m21.306s
user 0m0.000s
sys 0m0.009s
$ docker exec test_wordpress_1 ls -al | grep wp-content
drwxr-xr-x 4 root root 4096 Sep 3 18:05 wp-content
$ docker exec test_wordpress_1 ls -al wp-content
total 20
drwxr-xr-x 4 root root 4096 Sep 3 18:05 .
drwxrwxrwx 5 www-data www-data 4096 Sep 3 18:05 ..
-rw-r--r-- 1 www-data www-data 28 Jan 8 2012 index.php
drwxrwxr-x 3 www-data www-data 4096 Sep 3 18:05 plugins
drwxrwxr-x 5 www-data www-data 4096 Sep 3 18:05 themes So this should be changed to specify that |
I think the issue is that WordPress says |
@wglambert Thank you very much, I have finally mount the wp-content and changed permissions, that has solved my problem. |
Hi, I'm using this docker-compose.yml file
But I can't update wordpress or install themes / plugins from the web interface.
I also cannot change to a language other than English.
Can these things not be done with this kind of images or am I doing something wrong?
The text was updated successfully, but these errors were encountered: