更新容器内的Wordpress。没有FTP访问 [英] Updating Wordpress inside a container. No FTP access

查看:66
本文介绍了更新容器内的Wordpress。没有FTP访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 wordpress Docker镜像安装了一个Wordpress网站,然后安装了主题。一切正常,但是当我以后要更新Wordpress时,出现以下消息:

I installed a Wordpress website with the wordpress Docker image, and then installed my themes. All works well, but when I want to update Wordpress later on, I get this message:


要执行请求的操作,WordPress需要访问您的Web服务器。请输入您的FTP凭据以继续。如果您不记得自己的凭据,则应联系您的虚拟主机。

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Wordpress容器未在网络上运行FTP服务器根。我该如何解决这个问题?

The Wordpress container is not running an FTP server on the web root. How could I solve this problem?

PS:我的Web根位于数据容器中,在不同容器之间共享。

PS: I have my web root in a data container, shared among different containers.

PS2:我打算在同一主机中存储多个Wordpress网站。

PS2: I am planning on storing several Wordpress websites in the same host. Is there also a solution that is compatible with this?

推荐答案

关键是要确保您的Web服务器是该服务器的所有者。目录WordPress已安装在(及其子目录)中。您看到错误是因为您的网络服务器没有适当的权限来写入目录。

The key is to make sure your web server is the owner of the directory WordPress is installed in (and its sub-directories). You're seeing an error because your web server doesn't have the proper privileges to write to your directories.

我建议运行 chown -R用户:group / path / to / wordpress ,用用户 group 以及您服务器的信息。

I recommend running a chown -R user:group /path/to/wordpress, substituting the user and group with your server's info.

这篇关于更新容器内的Wordpress。没有FTP访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆