-
Notifications
You must be signed in to change notification settings - Fork 1.1k
can not upgrade wordpress in the container #369
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
Comments
On a default start the $ docker run --rm -dit --name wordpress wordpress
$ docker exec -it wordpress bash
root@bd973ce2ffa0:/var/www/html# ls -al
total 208
drwxrwxrwx 5 www-data www-data 4096 Jan 29 17:26 .
drwxr-xr-x 4 root root 4096 Jan 22 21:56 ..
-rw-r--r-- 1 www-data www-data 234 Jan 29 17:26 .htaccess
-rw-r--r-- 1 www-data www-data 418 Sep 25 2013 index.php
-rw-r--r-- 1 www-data www-data 19935 Jan 3 16:24 license.txt
-rw-r--r-- 1 www-data www-data 7415 Mar 18 2018 readme.html
-rw-r--r-- 1 www-data www-data 6878 Dec 13 01:30 wp-activate.php
drwxr-xr-x 9 www-data www-data 4096 Jan 9 18:32 wp-admin
-rw-r--r-- 1 www-data www-data 364 Dec 19 2015 wp-blog-header.php
-rw-r--r-- 1 www-data www-data 1889 May 2 2018 wp-comments-post.php
-rw-r--r-- 1 www-data www-data 2853 Dec 16 2015 wp-config-sample.php
drwxr-xr-x 4 www-data www-data 4096 Jan 9 18:32 wp-content
-rw-r--r-- 1 www-data www-data 3669 Aug 20 2017 wp-cron.php
drwxr-xr-x 19 www-data www-data 12288 Jan 9 18:32 wp-includes
-rw-r--r-- 1 www-data www-data 2422 Nov 21 2016 wp-links-opml.php
-rw-r--r-- 1 www-data www-data 3306 Aug 22 2017 wp-load.php
-rw-r--r-- 1 www-data www-data 37296 Dec 13 00:28 wp-login.php
-rw-r--r-- 1 www-data www-data 8048 Jan 11 2017 wp-mail.php
-rw-r--r-- 1 www-data www-data 17421 Oct 23 07:04 wp-settings.php
-rw-r--r-- 1 www-data www-data 30091 Apr 29 2018 wp-signup.php
-rw-r--r-- 1 www-data www-data 4620 Oct 23 2017 wp-trackback.php
-rw-r--r-- 1 www-data www-data 3065 Aug 31 2016 xmlrpc.php |
thanks, it works. Can this be done in the image? so that it can work out of the box? Thanks. |
Here is my docker-compose file:
I mounted the whole
/var/www/html
.The file permissions are correct:
When I click the
upgrade
orre-install
wordpress button in theUpdates
menu of the dashboard of the workdpress, it requires me to input a Ftp user/password to.I checked the web root folder and
wp-content
permissions, they are all correct(xrw
for thewww-data
user)So I add the following line to
wp-config.php
Then the upgrade button can work now.
what's wrong here? Is there anyone have the same problem ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: