folder in chmod 777 ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Daniel_in_the_sky
Posts: 13
Joined: 2009-07-27T05:04:53-07:00
Authentication code: 8675309

folder in chmod 777 ?

Post 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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: folder in chmod 777 ?

Post by Bonzo »

It might work in 755 but the folder has to be writable.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: folder in chmod 777 ?

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply