Hi Martin,

thank you for answering, yes /tmp exists and is writeable for apache
process ls -l /tmp says :

total 0
-rw-------  1 apache  apache 0 jui  6 13:17 307X7k
-rw-------  1 apache  apache 0 jui  6 12:35 3POxYc
-rw-------  1 apache  apache 0 jui  6 13:19 4tnBoL
-rw-------  1 apache  apache 0 jui  6 13:08 adeWur
-rw-------  1 apache  apache 0 jui  6 12:44 aOvtdg
-rw-------  1 apache  apache 0 jui  6 12:35 eP1Ca1
-rw-------  1 apache  apache 0 jui  6 12:37 hex8km
-rw-------  1 apache  apache 0 jui  6 13:20 i3bcKi
-rw-------  1 apache  apache 0 jui  6 13:47 IXVkhl
-rw-------  1 apache  apache 0 jui  6 12:27 jKBSay
srw-rw-rw-  1 popuser root   0 ao� 11  2008 spamd_full.sock
-rw-------  1 apache  apache 0 jui  6 13:46 uqPkiB
-rw-------  1 apache  apache 0 jui  6 13:14 utGR4c
-rw-------  1 apache  apache 0 jui  6 13:13 wdwjnD
-rw-------  1 apache  apache 0 jui  6 13:09 wjcZac
-rw-------  1 apache  apache 0 jui  6 13:37 zd25zl

I still can't fix my problem for the moment and i don't know zend_cache
at all.
I have another site on this server wich is running fine with ZF 1.6 or
1.7 and using Zend_Locale wihout problem.

The exception occurs with an app using ZF 1.8.

Thanks again for your help.

Denis.

Martin Martinov a écrit :
2009/7/6 Denis Fohl <[email protected]>:
Hi all,

my app is running fine on my dev box (linux ubuntu) but when i upload it to
my client's production server (fedora / plesk) i have got the following
message :

'Zend_Cache_Exception' with message 'Could not determine temp directory,
please specify a cache_dir manually'

it seems that it is thrown in my index.php where i set the locale :

Zend_Registry::set('locale', new
Zend_Locale(Zend_Registry::get('currentLang')));

If i try to set the temp directory to /tmp :

Zend_Cache_Backend_File::setCacheDir('/tmp');

i've got the following error :

'Zend_Cache_Exception' with message 'cache_dir must be a directory'

although /tmp is a valid directory.

Thanks for help.

Denis.



Are you sure that the /tmp directory exists and is writeable by the
owner of the apache/httpd process? What does ls -l /tmp say?



Reply via email to