Page 1 of 1

folder in chmod 777 ?

Posted: 2011-04-05T04:50:31-07:00
by Daniel_in_the_sky
Hi,

Im using IM by php with exec command.
Why convert by php is working only when the folder are in chmod 777 ?
how can i change that and put more security ?

Thank you very much

D.

Re: folder in chmod 777 ?

Posted: 2011-04-05T04:54:53-07:00
by Bonzo
It might work in 755 but the folder has to be writable.

Re: folder in chmod 777 ?

Posted: 2011-04-05T05:28:17-07:00
by anthony
Because PHP does not run as you... It is run using the web servers user, which must be able to right to save images in that directory. Make sure it is a special directory just for images, and not other things. YOu don't want it writing over anything important.

Temporary images can be saved in /tmp or a created sub-diectory in /tmp. But the program should ensure any such images are cleaned up when finished.