Thread:Project:Support desk/Write permissions error on image file directories (2)

I have recently had problems with adding images to pages on my wiki. The file uploads OK, but the file permission defaults to 644, and so when I include it in a wiki page, it fails to load the page. I get the error message:

"Warning: imagejpeg [function.imagejpeg]: Unable to open '/home/public_html/../XYZ.jpg' for writing: Permission denied in /home/.../includes/media/Bitmap.php on line 508"

If I set the file permission to 777, then it loads OK - but this does present a security risk - so I would rather avoid this if I can.

How can I resolve this?

Sgfoote (talk) 21:28, 8 January 2013 (UTC) Media Wiki version 1.17.2 PHP version 5.3.10 MySQL version 5.1.66-cll