2
我正在開發一個使用codeigniter的web應用程序。當我在本地運行時,Codeigniter會在應用程序文件夾中創建一個文件夾。然而,相同的應用程序在Google App Engine上引發錯誤,原因是GAE只有一個只讀文件系統。如何防止codeigniter創建Memcache目錄
我試圖阻止codeigniter創建這個文件夾,但迄今沒有任何成功。
P.S.我是新的codeigniter。
我正在開發一個使用codeigniter的web應用程序。當我在本地運行時,Codeigniter會在應用程序文件夾中創建一個文件夾。然而,相同的應用程序在Google App Engine上引發錯誤,原因是GAE只有一個只讀文件系統。如何防止codeigniter創建Memcache目錄
我試圖阻止codeigniter創建這個文件夾,但迄今沒有任何成功。
P.S.我是新的codeigniter。
在app/config/config.php中更改以下行應解決該問題。
$config['sess_driver'] = 'memcached';
$config['sess_save_path'] = 'localhost:11211';
需要注意的是它什麼並不重要價值你sess_save_path
,只要它的格式<hostname>:<port>
設置。
非常感謝@Mars。這解決了我的問題。 –
http://stackoverflow.com/questions/10000491/how-to-turn-off-on-memcache-in-code-igniter 這是否有幫助? –
@RobinValk感謝您的幫助。但是,該鏈接的回覆非常混亂。你能幫我解決嗎? –
你可能想看看https://github.com/GoogleCloudPlatform/CodeIgniter – Mars