简体   繁体   中英

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

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/home/SITENAME/public_html/files/cache/052f225905c1618003df0c5088aec7a9.jpg' for writing: Permission denied in /home/SITENAME/public_html/concrete/helpers/image.php on line 172

I emptied the cache directory and still no luck, and if I change the permissions on the cache folder then I get another error and I can't use the site at all:

Warning: require_once(Zend/Cache/Backend/File.php) [function.require-once]: failed to open stream: No such file or directory in /home/MYACCOUNT/public_html/concrete/libraries/3rdparty/Zend/Cache.php on line 133

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Cache/Backend/File.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/owen/php') in /home/MYACCOUNT/public_html/concrete/libraries/3rdparty/Zend/Cache.php on line 133

I don't get it? I've never had this problem before.

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.

  1. Check that directory exists.
  2. Check if web server daemon, most of the time - www-data, has write permissions to that particular directory.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM