Skip to content
Advertisement

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:

JavaScript

How do I fix permissions on the cloud server? I have full root access if it is needed.

Advertisement

Answer

chmod on your directory to read write execute. Or give user permissions to te directory.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement