Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

What about cache file permissions

  • cantthinkofanickname
  • cantthinkofanickname's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 2 months ago #28060 by cantthinkofanickname
What about cache file permissions was created by cantthinkofanickname
I've canged my cache folder to 755 but I find that when I later went to the site the galleries were again not appearing. The debug reported the files themselves were unwriteable. I found I have to change the permissions for the individual jpg files stored in the cache to 646. Why doesn't this work automatically?

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
15 years 2 months ago #28061 by Yiota
Replied by Yiota on topic Re: What about cache file permissions
It has to do with your server and what file permissions has for this folder that your whole site is in. What permissions does it give when files/folders are created, etc.

Please Log in or Create an account to join the conversation.

  • cantthinkofanickname
  • cantthinkofanickname's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 2 months ago #28062 by cantthinkofanickname
Replied by cantthinkofanickname on topic Re: What about cache file permissions
I am not sure but seemed to have solved the problem with 777 for the cache and 646 for the files. Isn't it a security problem to have 777 for the cache?

Please Log in or Create an account to join the conversation.

More
15 years 4 weeks ago #28063 by dakruhm
Replied by dakruhm on topic Re: What about cache file permissions

I am not sure but seemed to have solved the problem with 777 for the cache and 646 for the files. Isn't it a security problem to have 777 for the cache?


Yes it is a security problem. Anytime you change the permissions to 777 on anything it is almost always invariably incorrect.

The web server itself needs write perms for the files in the cache (jwsigpro v1.2 didn't require this). Which leads to:
find cache/ -type f -exec chmod 664 {} \;

Advice given to change the directory or the files to 777 is going to "work" but it is over compensating for the issue and is the incorrect answer.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum