PHP Permission errors not sure what it means

Discussion in 'PHP' started by Xphic, Jun 30, 2011.

  1. #1
    Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/aniwalls/public_html/images/wallpapers/Final-958394.jpeg' for writing: Permission denied in /home/walls/public_html/admin/index.php on line 1204
    
    Warning: move_uploaded_file(/home/aniwalls/public_html/images/wallpapers/Final-649100.jpeg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/walls/public_html/admin/index.php on line 1269
    
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpGJlcrb' to '/home/aniwalls/public_html/images/wallpapers/Final-Getsuga-Tenshou-649100.jpeg' in /home/aniwalls/public_html/admin/index.php on line 1269
    /tmp/phpGJlcrb
    /home/walls/public_html/images/wallpapers/Final649100.jpeg
    PHP:

    I'm getting these php errors when I try to upload an image. I'm not sure what it means, I've set every file on the server to 777 and I still get this errors.

    Any ideas anyone?
     
    Xphic, Jun 30, 2011 IP
  2. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #2
    Have you set the directory permissions to 777? And does the images/wallpapers directory even exist?
     
    Alex Roxon, Jun 30, 2011 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    The /home/aniwalls/public_html/images/wallpapers/ folder needs to be editable. 777 permissions is normally required which is a security risk in a public directory like this. Just something to keep in mind.
     
    jestep, Jul 1, 2011 IP