Is there a way to work around the 777 permission to host a site on a non Yola server?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
When downloading a site from Yola, the zip file comes with a readme, which lists the requirements for the website to work on a non Yola server. One of them reads:

* Ensure that the "classes/work/templates_c" directory is writable by the web server.
(chmod 777 classes/work/templates_c on *nix boxes)

I've contacted a few hosting providers and they've all said that they do not provide this.. two of them said that they do support 750 or 644 permissions. are there any workarounds?

would you recommend any hosting providers that do support the 777 permission?

Photo of Cosmic Sensorium

Cosmic Sensorium

  • 102 Posts
  • 5 Reply Likes
  • optimistic

Posted 9 years ago

  • 1
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there,

Unfortunately this is beyond my technical capabilities so I have forwarded your post onto our technical team and I am awaiting a response from them.

We will get back to you later today with regards to your question.
Photo of Jonathan Hitchcock

Jonathan Hitchcock

  • 37 Posts
  • 16 Reply Likes
Official Response

You don't actually need the full "777 permission" - all you need to do is make sure that the web server can write the directory.

If you want to understand more about these numbers, you can google for "unix permissions", although it's a bit technical. The summary is that the first number is how much permission the owner has, the second is how much permission the owner's fellow group-members have, and the third is how much permission everybody else has. 7 is the highest permission, so "777" means that everybody (owner, group and everybody else) has full permissions, which is why hosting providers are loth to allow this.

You should be fine with either 750 (or 755) or 644, as long as the directory is "owned" by the web server user. If it is, then the first number is the one that counts, and 6 or 7 is a high enough permission for our purposes. Ask your hosting provider to make sure that the classes/work/templates_c directory is owned by the webserver, and then you can use their default 750/644 permissions.

If you need any more explanation (or help translating what your hosting provider is telling you), let me know!

Yola Operations
Photo of Cosmic Sensorium

Cosmic Sensorium

  • 102 Posts
  • 5 Reply Likes
Awesome, thank you so much Jonathan. Support from one of the hosting providers did say that "777 specifically will not work but the server is coded to properly show 777 with a 755 setting" ... so I guess that one would be fine. Not that cheap though! I'm getting the hosting for other applications, but wanted to make sure that I could host my Yola Sites on there if need be.