Magento Zend Cache Bug

Magento Zend Cache Bug

A quick one

Symptom

The Magento cron job, set up for the user running the webserver, is not running correctly besides everything seems to be configured correctly.

When you run the script as root:

bin/sh /var/www/–whatever-path–/web/cron.sh

everything is fine, but when you run the cron script being the server user:

su www-data
bin/sh /var/www/–whatever-path–/web/cron.sh

You get an error message:

PHP Fatal error:  Uncaught exception ‚Zend_Cache_Exception‘ with message ‚cache_dir „/var/www/–whatever-path–/web/var/cache“ must be a directory‘ in /var/www/–whatever-path–/web/lib/Zend/Cache.php

Even when the directory exists!

Solution

I did not find a single post in the wide wide web describing this problem: the var as well as the cache directory must be u+rwx AND g+rwx! Mind the x!

 


Related Articles

Triops longicaudatus: Ein Blick in das Ei während des Schlüpfens (Video)

Die Eier des Urzeit-Krebses Triops longicaudatus haben, wie alle Triops-Eier, eine dicke undurchsichtige Schale. Hier zeige ich euch ein Video, für das ich diese Schale chemisch entfernt habe, man kann also den Inhalt des Eis während der Entwicklung des Embryos beobachten.

Toaster enttuppern

Naja, nichts spektakuläres. Der Toaster hat etwas Plastik verschluckt und ich zeige euch eine Idee, wie man das Plastik wieder wegbekommen kann.

Plötzlich Lehrer

Und plötzlich weißt du: Es ist Zeit, etwas Neues zu beginnen und dem Zauber des Anfangs zu vertrauen. Meister Eckhart

No comments

Write a comment
No Comments Yet! You can be first to comment this post!

Write a Comment