php - imagejpeg() permission problems -


im trying create thumbnails using gd library , using imagejpeg() function. output shows following error

warning: imagejpeg() [function.imagejpeg]: unable open '/var/www/html/yahoo/thumbs/1136.jpg' writing: permission denied in /var/www/html/yahoo/thumbnail.php on line 56

i have set full 777 permissions on thumbs folder, there else causing this, or missing here.

thanks :)

ive tried creating file fopen , getting same issue.. fopen returns following warning:

warning: fopen(/var/www/html/yahoo/thumbs/1176.jpg) [function.fopen]: failed open stream: permission denied in /var/www/html/yahoo/thumbnail.php on line 56 can't open file 

selinux preventing httpd writing directory. use chcon change file context of /var/www/html/yahoo/thumbs/ httpd_sys_rw_content_t, , if lets work use semanage make permanent.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -