magento version: 1.5.1

OS: CentOS 5.2

Server: Apache 2.X

MySQL: 5.X

 

After i uploaded the code and installed magento, it seems that it is running well. But when i visit http://www.mywebsite.com/index.php/admin/catalog_product/index/key/cbe2b4d77f0b3b97de24c4a43443458e/ , i get this error:

Could not determine temp directory, please specify a cache_dir manually 

Thanks to google, finally i found the solution.

 

Open lib/Zend/Cache/Backend/File.php,

change these code from:

protected $_options = array(

        'cache_dir' => 'null', 

to: 

protected $_options = array(

        'cache_dir' => '/tmp', 

 

then it is ok now.

 

 

Have fun with magento! 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-07-15
  • 2021-07-01
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2021-11-19
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-06-10
相关资源
相似解决方案