Could not determine temp directory, please specify a cache_die manually..after magento installed
Hi guys,
After magento is installed, you may have the error "Could not determine temp directory, please specify a cache_dir manually" when clicking on some pages.
Usually it happened in shared web hosting, and on individual server it happened when the permission of tmp folder set wrong.
Firstly, copy "/lib/Zend/Cache/Backend/File.php" to "/app/code/local/Zend/Cache/Backend/File.php", then in line 91:
change to
You can also change the cache folder wherever you want, and that directory you should create yourself and change the permission to 755.
and you done :)
Cheers,
After magento is installed, you may have the error "Could not determine temp directory, please specify a cache_dir manually" when clicking on some pages.
Usually it happened in shared web hosting, and on individual server it happened when the permission of tmp folder set wrong.
Firstly, copy "/lib/Zend/Cache/Backend/File.php" to "/app/code/local/Zend/Cache/Backend/File.php", then in line 91:
'cache_dir' => null,
change to
'cache_dir' => "var/tmp/",
You can also change the cache folder wherever you want, and that directory you should create yourself and change the permission to 755.
and you done :)
Cheers,
Thanks,
ReplyDeleteIt work like a charm.
All The Best.
You are genius .
Harsh
Hi, I can't locate this directory: "/app/code/local/Zend/Cache/Backend/File.php"
ReplyDeleteIn local there are no further directory levels?
It is in "/lib/Zend/Cache/Backend/File.php" not on app/code...
ReplyDeletePlease read it again; you have to copy that file into app/code..
because it's not good practice to make change into core file; so
No I realise that.
ReplyDeleteI meant that I cannot copy the file to /app/code/local/Zend/Cache/Backend/File.php
as no further directories exist within local?
Pete,
ReplyDeleteYou've got to create the "further directories".
The path Zend/Cache/Backend is not going to exist unless you've previously created it.
Try: mkdir -p app/code/local/Zend/Cache/Backend if you're on Linux.
Not working Mate.... The magento CMS is a piece of Crap
ReplyDelete