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

I get this error when I try to use memcache using kohana. all i did was change the hostname in the configuration file and used $cache = Cache::instance('memcache');.

I can telnet for memcached servers, so probably the problem does not exist.

any help?

+5
source share
3 answers

Google Chrome error detected. This suggests that Kohana is not responding, most likely because error / exception handling is suppressed. Make sure PHP is enabled error_reporting( E_ALL- good value).

, , PHP segfault. , , -, .

, php-memcache / memcache .

+3

PHP, FuelPHP https://fuelphp.com/forums/topics/view/4256#11344

  • Google Chrome " 324 (:: ERR_EMPTY_RESPONSE): - . "
  • PHP - , Apache , -
  • Apache " [] child pid 19647 (11)"

- php- (duh!) , - .

+5

, . 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);

sudo apt-get install php5-mysqlnd. . , , , , .

0

All Articles