Image generation problem

RagingEagle

New member
Joined
Feb 26, 2011
Messages
2
Hi all,

I'm new to DirectAdmin coming from cPanel, I've been able to figure out all of my problems so far, but I can't seem to get past my current problem.

What I'm needing to setup on the server is a thumbnail generation script, however when I run the script I get the following error:

Warning: imagejpeg() [function.imagejpeg]: Unable to open '1834538365.jpg' for writing: Permission denied in /home/admin/domains/thedomain.ccom/public_html/thumb/thumb_function.php on line 52

The code on line 52 is: imagejpeg($destination,$thumbimage);

In doing some research my problem is similar to: http://www.directadmin.com/forum/showthread.php?t=27340

And by following what is said in that thread, by setting “thumb” folder permissions to 777, the image generation works. However, for obvious reasons, I don’t want to keep permissions at 777.

Does anyone have any idea on how to fix such a problem?

Thanks!
 
Back
Top