简体   繁体   English

move_uploaded_file给出:无法打开流:权限被拒绝

[英]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.

相关问题 move_uploaded_file 无法打开 stream:权限被拒绝 - Mac - move_uploaded_file failed to open stream: Permission denied - Mac move_uploaded_file无法打开流和权限被拒绝错误 - move_uploaded_file failed to open stream and Permission denied error move_uploaded_file 无法打开流:权限被拒绝 Mac - move_uploaded_file failed to open stream: Permission denied Mac 即使使用777,move_uploaded_file也会给出“无法打开流:权限被拒绝” - move_uploaded_file gives “failed to open stream: Permission denied ” even with 777 move_uploaded_file给出“无法打开流:/ var / www / html中的权限被拒绝” - move_uploaded_file gives “failed to open stream: Permission denied in /var/www/html” move_uploaded_file 给出“无法打开流:权限被拒绝”错误 - move_uploaded_file gives "failed to open stream: Permission denied" error move_uploaded_file(uploads /)[function.move-uploaded-file]:无法打开流:权限被拒绝 - move_uploaded_file(uploads/) [function.move-uploaded-file]: failed to open stream: Permission denied PHP警告:move_uploaded_file():无法移动/无法打开流:权限被拒绝 - PHP Warning: move_uploaded_file(): Unable to move/failed to open stream: Permission denied php 文件上传错误警告 move_uploaded_file 无法打开 stream 权限被拒绝 - php file upload error warning move_uploaded_file failed to open stream permission denied in 上传文件警告:move_uploaded_file(../ view / pictureswhy.PNG):无法打开流:权限被拒绝 - Upload file Warning: move_uploaded_file(../view/pictureswhy.PNG): failed to open stream: Permission denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM