By andrewpandji
I was trying to upload a website that I’ve created onto a droplet server. Was able to login via FTP just fine (through FileZilla). When I tried moving my files to the /var/www directory it refused to upload the file. The reason for file transfer failure was that the directory was open for write: permission denied.
Here is the log: Status: Starting upload of /Users/andrewp/Documents/Freelance_Projects/TechArtista+Kyte/kyte_site/kyte_site.html Status: Retrieving directory listing… Command: ls Status: Listing directory /var/www/html Command: put “/Users/andrewp/Documents/Freelance_Projects/TechArtista+Kyte/kyte_site/kyte_site.html” “kyte_site.html” Error: /var/www/html/kyte_site.html: open for write: permission denied Error: File transfer failed Status: Retrieving directory listing… Command: ls Status: Listing directory /var/www/html Status: Directory listing successful
More details:
This is the first time I’ve done anything like this so help would be great :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I ran the above commands but it didnt work until i tried the solution found here: http://yogodoshi.com/how-to-fix-open-for-write-permission-denied-error-sftp/
I set ssh and made connection with filezilla but getting same error:
File transfer failed
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
