Cache folder write issues

This is a discussion on "Cache folder write issues" within the PHP Forum section. This forum, and the thread "Cache folder write issues are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 21st, 2005, 05:42
New Member
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Cache folder write issues

I had to give my cache folder a chmod of 777 for my script to write to it. I think anybody could easily rewrite my pages in the cache folder to put whatever they want on my site. How can I just give php permission to write to the folder. I have tried every chmod I can think of and they all come back with a could not write error. I have to give the other permission to write to the folder and that bothers me greatly.
Reply With Quote

  #2 (permalink)  
Old Dec 21st, 2005, 09:53
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Cache folder write issues

Does 777 work then?
Reply With Quote
  #3 (permalink)  
Old Dec 21st, 2005, 17:53
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cache folder write issues

777 doesn't let anyone in the world write/rewrite/execute your programs, It just opens up anything running on the server to be able to. It is generaly very unlikely that any of the other websites will manage to access your folder, your host should have protection against that. The main concern is if someone finds a security hole in your code, they could do some damage. Or if they manage to upload and execute a program.
Reply With Quote
  #4 (permalink)  
Old Dec 23rd, 2005, 05:48
New Member
Join Date: Sep 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cache folder write issues

Ok that cures my fears, yes 777 works great but I wasn't sure how secure it was.
Reply With Quote
  #5 (permalink)  
Old Jan 9th, 2006, 22:31
New Member
Join Date: Jan 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cache folder write issues

777 just means read/write/execute any user/group on your speciifc server. If you are hosting your site on a shared server, it does in theory mean that another user could write to your folder. But most web hosts work on the theory that they can "trust" the users they host on their servers. In most cases this works fine. Someone else using that server would have no reason to write to your directory. If you are really worried about it, you should look for a host that runs something called "suexec", which allows you to have your folders as 700, (read/write only your user). Not many hosts run this though, as i said its never really an issue.
Reply With Quote
Reply

Tags
cache, folder, write, issues

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cache Question toastyrat2 Web Page Design 4 Mar 4th, 2008 06:53
Cache problem vuryss PHP Forum 0 Feb 25th, 2008 05:34
cache alexgeek Website Planning 3 Sep 28th, 2007 01:36
preloading images into browser cache gwx03 Flash & Multimedia Forum 3 May 29th, 2004 16:58


All times are GMT. The time now is 01:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43