How do I upload a Ghost Theme file using filezilla sftp?

  • Posted on September 13, 2014
  • WCmickAsked 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?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!

This comment has been deleted