【发布时间】:2017-09-12 04:05:59
【问题描述】:
只想回答我的问题。因为我有一个网站,并且我的管理部分有一个文件浏览器。问题是我无法上传某些文件夹。当我在控制台上检查时,我收到了以下错误消息:
<b>Warning</b>: move_uploaded_file(/var/www/vhosts/mysite.com/httpdocs/image/data/Philippines/login.png): failed to open stream: Permission denied in <b>/var/www/vhosts/mysite.com/httpdocs/centre/controller/common/filemanager.php</b> on line <b>480</b><b>Warning</b>: move_uploaded_file(): Unable to move '/tmp/phpm0WqMg' to '/var/www/vhosts/mysite.com/httpdocs/image/data/Philippines/login.png' in <b>/var/www/vhosts/flaxmidoriprojects.com/httpdocs/centre/controller/common/filemanager.php</b> on line <b>480</b>{"error":"Warning: File could not be uploaded for an unknown reason!"}
当我检查 FTP Filezilla 上的权限和组时。这些文件夹属于不同的组和权限。
这些是文件夹fle (0755) 和48 48 组。你能告诉我这是怎么发生的吗?
谢谢。我希望你能给我一些想法,我该如何解决这个问题。我已经尝试更改 Fileilla 的权限,但我的操作不被允许。
【问题讨论】:
-
您的问题是off-topic here - 这将是Super User 的主题。但那里已经回答了:Changing group in FileZilla
标签: permissions ftp filezilla ownership