Getting Error 324 (net::ERR_EMPTY_RESPONSE). when using memcache in kohana

后端 未结 3 1147
北恋
北恋 2021-01-19 01:05

i\'m getting this error when i try to use memcache using kohana. all i did was changed the hostname in the configuration file and used $cache = Cache::instance(\'memca

3条回答
  •  我在风中等你
    2021-01-19 01:56

    Can't reproduced this problem in local as my local and server have different environment. This happened after setting the PDO

    $db = new PDO('mysql:host='.$host.';dbname='.$db_name, $user, $pass, 
      array( PDO::ATTR_PERSISTENT => true));
    $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
    $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
    

    However after run an update for sudo apt-get install php5-mysqlnd. Problem fixed. So this could be one of the things you can check if you have run out of idea where's the problem coming from.

提交回复
热议问题