cancel
Showing results for 
Search instead for 
Did you mean: 

'cache_dir' => 'var/tmp/', is not working please help

'cache_dir' => 'var/tmp/', is not working please help

hello every one i have deploy my magento website on local server . i have update each file that is required like smaple.xmle file.php with  'cache_dir' => 'var/tmp/', code also i change this code to  'cache_dir' => 'tmp/', both both did not work for me i also create a tmp folder with 777 permission but the error is still there [

Could not determine temp directory, please specify a cache_dir manually

]

i also try to clear cache but any thing not work for me if anyone have any idea about this issue please help your help will be highly appreciated thanks 

4 REPLIES 4

Re: 'cache_dir' => 'var/tmp/', is not working please help

Can you please try caching, indexing in Magento?! Also try compilation but before running compilation, please take backup of your system just for safety.

Re: 'cache_dir' => 'var/tmp/', is not working please help

you dont have to edit any files, just create writeable tmp directory in magento root or /var folders

------------
MagenX - Magento and Server optimization

Re: 'cache_dir' => 'var/tmp/', is not working please help

'cache_dir' => 'var/tmp/'

to this

'cache_dir' = 'tmp/'

 

done

Re: 'cache_dir' => 'var/tmp/', is not working please help

Open /lib/Zend/Cache/Backend/File.php. Line 99 'cache_dir' => 'var/tmp/'

So Magento is trying to refer /var/tmp/ folder and either it couldn't be able to read or write this folder.

So you got 2 solutions,

Solution 1: Give 777 file permission to /var/tmp/ folder.

Solution 2: Open /lib/Zend/Cache/Backend/File.php. Change line 99 to 'cache_dir' => 'null'

Hope this helps.

 

Thanks