(nginx) fcgi+PHP+memcache on RedHat: Class 'Memcache' not found...
| From: | Tom Barrett | Date: | Mon, 26 Oct 2009 15:45:41 +0000 |
| Subject: | (nginx) fcgi+PHP+memcache on RedHat: Class 'Memcache' not found... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-299346@lists.php.net to get a copy of this message | ||
Hello
I have installed:
- libevent
- libmemcached (http://tangent.org/552/libmemcached.html)
- Done a PECL installation (pecl download memcached, phpize &&
./configure && make)
- memcached
> cat /etc/php.d/memcached.ini
; Memcached default settings
extension=memcache.so
> ls -1 /usr/lib64/php/modules/memcache*
/usr/lib64/php/modules/memcached.so
/usr/lib64/php/modules/memcache.so
> memcached -h
memcached 1.2.6
...
> php -v
PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:12)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
/var/www/php_fcgi_memcache> cat memcache.php
<?php
$memcache = new Memcache;
print_r($memcache);
?>
/var/www/php_fcgi_memcache> php memcache.php
PHP Fatal error: Class 'Memcache' not found in
/var/www/php_fcgi_memcache/memcache.php on line 2
Memcached is working fine (being use by Perl quite happily).
PHP/FCGI is working OK and phpinfo() shows:
memcached support enabled
Version 1.0.0
libmemcached version 0.34
Session support yes
Any pointers in the right direction would so very much appreciated.