When running the CLI version of PHP from the command line, you may receive errors like the following: [root@myserver /root]$ php -v PHP Warning PHP Startup: memcache: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in on line 0 PHP 5.2.3 (cli) (built: Jun 14 2007 15:29:17) Copyright (c) 1997-2007 The PHP Group


Solution:

Reinstall memcache.

To reinstall memcache:

>>Login to server as root

>>pecl install memcache 

>>You should add “extension=memcache.so” into your php.ini.

>>Restart Apache

>>/etc /init.d/httpd restart

>>Verify after running command:  php -m

This will resolve the error.

 

Solution:
Reinstall memcache.
To reinstall memcache:
>>Login to server as root
>>pecl install memcache 
>>You should add “extension=memcache.so” into your php.ini.
>>Restart Apache
>>/etc /init.d/httpd restart
>>Verify after running command:  php -m
This will resolve the error.
:
Reinstall memcache.
To reinstall memcache:
>>Login to server as root
>>pecl install memcache 
>>You should add “extension=memcache.so” into your php.ini.
>>Restart Apache
>>/etc /init.d/httpd restart
>>Verify after running command:  php -m
This will resolve the errorSolution:
Reinstall memcache.
To reinstall memcache:
>>Login to server as root
>>pecl install memcache 
>>You should add “extension=memcache.so” into your php.ini.
>>Restart Apache
>>/etc /init.d/httpd restart
>>Verify after running command:  php -m
Solution:
Reinstall memcache.
To reinstall memcache:
>>Login to server as root
>>pecl install memcache 
>>You should add “extension=memcache.so” into your php.ini.
>>Restart Apache
>>/etc /init.d/httpd restart
>>Verify after running command:  php -m
This will resolve the error.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: