By WCmick
Using filezilla sftp to download a file from my server works just fine. However, I can not upload a theme file using filezilla. I am logged in as a user with root permissions. Do I need to make some permission changes to be able to upload files?
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!
This comment has been deleted
I was having this same problem. I didn’t find anything on DigitalOcean community about this, so I went out to the farther deeper parts of the internet to find an answer.
Eventually I pieced together the answer by reading several different forum posts and and stitching everything together and filling in the holes.
Alas, this is what I did to solve the problem.
As it turns out, VSFTPD does not make any changes to file permissions. Long story short, the /var/www/ folder does not (for several obvious reasons) have executable properties to it, and apparently the act of creating a new folder (such as ones needed for your theme) requires those permissions. So you need to change the permissions.
What I did is this:
chmod 777 -R /var/www/ghost/content/themes
This gives the themes folder (and deeper folders) executable rights for all users on the system. If you try to upload your files now they should work.
Now after I uploaded the files, I decided that I did not want to keep the folder with executable permissions, so as soon as it was successfully uploaded I reversed the process, thereby making it secure again.
chmod 755 -R /var/www/ghost/content/themes
The above line of code will do the trick, locking down your folders in the way they were before.
Hope that helps!
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.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.