2013-11-25 26 views
0

我在ubuntu 12.04 LTS上使用php5.3.10。在777處設置緩存掩碼後,在緩存文件上生成的權限是隻讀的

我正在運行CakePHP 2.4.2。

這是我的bootstrap.php

// Setup a 'default' cache configuration for use in the application. 
Cache::config('default', array(
    'engine' => 'File', 
    'mask' => '0777' 
)); 

這是我的緩存文件夾

enter image description here

正如你所看到的,所產生的緩存文件不是777

我不知道還有什麼要做。我已重新啓動服務器。

我已經確保tmp文件夾是777

請指教。

回答

0

請嘗試以下命令

sudo chmod -R 777 cakephp/app/tmp 
+0

做過無濟於事 –

0

答案是失去了單引號的屏蔽選項。

// Setup a 'default' cache configuration for use in the application. 
Cache::config('default', array(
    'engine' => 'File', 
    'mask' => 0777 // no single quotes!!!! 
)); 
+0

去掉引號,太在Ubuntu操作系統不工作:( –