gpt4 book ai didi

linux - Vagrant 虚拟机上的 ExpressionEngine : "Thumbnail could not be created for the image" error

转载 作者:太空宇宙 更新时间:2023-11-04 04:15:13 24 4
gpt4 key购买 nike

我们在 Vagrant VM (CentOS 6.2) 上运行 ExpressionEngine 2.6.1,EE 文件位于 Vagrant“共享文件夹”中。当我 ssh 进入 Vagrant 机器时,我看到上传文件夹及其子文件夹具有以下权限:

uploads:          drwxrxrwx   apache   apache
uploads/_thumbs: drwxr-xr-x apache apache

我们将这些目录的所有权更改为 apache 用户和组,只是为了看看这是否是 EE 所需要的,但没有成功。在此之前我们有:

uploads:          drwxrwxrwx  vagrant  apache
uploads/_thumbs: drwxrwxrwx vagrant apache

在此之前:

uploads:          drwxrwxrwx  vagrant  vagrant
uploads/_thumbs: drwxrwxrwx vagrant vagrant

在所有三种情况下,当我们尝试将图像上传到内容项时,都会收到以下错误:

Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable.

有人知道为什么会出现这种情况吗?

最佳答案

您需要成为什么用户和组? ssh 后的默认用户是 vagrant:vagrant。

chown -R user:group uploads

这将递归地检查上传中的所有文件和目录。也许这有帮助。

关于linux - Vagrant 虚拟机上的 ExpressionEngine : "Thumbnail could not be created for the image" error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16819834/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com