Phpize Compiling and installing memcached

Source: Internet
Author: User

Here is the installation process for memcached:

#wget http://memcached.googlecode.com/files/memcached-1.4.9.tar.gz

# tar zvxf memcached-1.4.9.tar.gz
# CD memcached-1.4.9
#./configure--prefix=/usr/local/memcached
# make
# make Install

Start memcached:

#/usr/local/memcached/bin/memcached-d-M 128-l 127.0.0.1-p11211-u Root

Parameter 128 Specifies the amount of memory used

Next is the extension for memcache :

#wget http://pecl.php.net/get/memcache-2.2.6.tgz

# tarzxfmemcache-2.2.6.tgz
# cd php/bin/phpize
#./configure--with-php/bin/memcache
# make
# make Install

Finally, add the following configuration information to PHP/lib/memcache. So

Note:/usr/local/php/extensions/no-debug-non-zts-20060613/This path may be different, whichever is the one in your machine.

You may experience the following issues during installation
/usr/local/src/memcache-2.2.5/memcache.c:2245:error:too few arguments to function ' Zend_list_insert '
Encountered this problem after the execution of Phpize, found in the memcache.c so
Zend_list_insert (pool, le_memcache_pool);
Change into
Zend_list_insert (pool, Le_memcache_pool tsrmls_cc);

Phpize Compiling and installing memcached

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.