apache - 'Memcache' not found in command line PHP script -


I have MacCheck installed and work for PHP applications running through Apache (v2.2), but When I try to run .php, I get this error in the command line:

  Fatal Error: Class 'Meashee' / 94 / on line / usr / local / matters / app / Not found in issues-common / connection.php  

Line is 94:

  $ memcache = new memcache;  Other information:   

CentOS 5.2 - PHP 5.2.5 (CLI) (Created: February 20, 2008 21:13: 12)
Jade Engine v2.2.0, Copyright (c) 1998-2007 Z Technologies - Apache v2.2.8

< P> Probably you have different php.ini files set for Apache and Command Line (CLI).

If so, then you need to add the following to your cli php.ini file:

  extension = memcache.so  

/etc/php5/cli/php.ini

On Ubuntu

If this is working, if you run php -m on the command line, then list the memcache module Should look in

Alternatively, you can make a file / etc / php5 / cond .d / memcache.ini with the same content.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -