Has anyone come across this php error before, Warning: imagejpeg()?

前端 未结 3 622
旧巷少年郎
旧巷少年郎 2021-01-28 12:56
Warning: imagejpeg() [function.imagejpeg]: Unable to open \'/home/SITENAME/public_html/files/cache/052f225905c1618003df0c5088aec7a9.jpg\' for writing: Permission denied          


        
相关标签:
3条回答
  • 2021-01-28 13:31

    Sounds like a permissions problem to me, but we can't tell from this end.

    If you can FTP (or CD) into that /home/SITENAME/public_html/files/

    and see if 'files' is owned by, and has the same permissions as public_html

    Then see what permissions they NEED to have for your hosting setup.

    0 讨论(0)
  • 2021-01-28 13:31

    For future reference the problem was the PHP handler. It has been changed to CGI mode (as opposed to DSO) and they turned suEXEC ‘off’ - might be useful for someone down the line.

    0 讨论(0)
  • 2021-01-28 13:49
    1. Check that directory exists.
    2. Check if web server daemon, most of the time - www-data, has write permissions to that particular directory.
    0 讨论(0)
提交回复
热议问题