[英]move_uploaded_file gives: failed to open stream: Permission denied
I am working with two different servers, and uploading files between them. 我正在使用两个不同的服务器,并在它们之间上传文件。 From one to another. 从一个到另一个。 But that is not working. 但这是行不通的。 It worked when both are on my localhost, but when I want to upload file from my localhost onto another server that is a cloud server. 当两者都在我的本地主机上时,但是当我想将文件从本地主机上载到另一台服务器(即云服务器)时,它就可以工作。 It is giving me this error: 它给了我这个错误:
Warning: move_uploaded_file(/var/www/data/user-blue.png): failed to open stream:
Permission denied in /var/www/upload.php on line 67
Warning: move_uploaded_file(): Unable to move '/tmp/phpVBiLvB' to '/var/www/data/user-blue.png' in /var/www/upload.php on line 67
How do I fix permissions on the cloud server? 如何修复云服务器上的权限? I have full root access if it is needed. 如果需要,我具有完全的root访问权限。
chmod on your directory to read write execute. chmod在您的目录上以读写方式执行。 Or give user permissions to te directory. 或授予用户te目录的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.