我们在 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
这将递归地检查上传中的所有文件和目录。也许这有帮助。
我是一名优秀的程序员,十分优秀!