Installing Memcache extensions under Linux

Source: Internet
Author: User

Memcache is an extension module for PHP, which should be guaranteed to have PHP environment before installation. First find the Phpize directory (if it is installed via Yum in/usr/bin, if they are not found, then #yum install Php-devel and reboot) after extracting the Memcache compressed package, "into the extracted folder." Next, use Phpzie to compile the memcache into the PHP extension module. #/usr/bin/phpize #./configure--with-php-config=/usr/bin/php-config (at this time if Error:memcache support requires zlib error, It means that there is no zlib, can be yum one, and then restart: #yum install-y zlib.x86_64 zlib-devel.x86_64) After the successful detection can be compiled memcache with make: #make #make Install Installing Shared extensions:/usr/lib64/php/modules/(the result above indicates that the extension will be installed in the/usr/lib64/php/modules/directory) Finally, you need to modify the PHP.ini configuration item, as follows: #vim/etc/php.ini (Find the following command in more than 700 lines, remove the comment, some can not be added manually) Extension_dir = "/usr/lib64/php/modules/" Extension = "memcache.so" extension = "pdo_mysql.so" Restart server can use #telnet memcached server IP address 11211来 to see if you can connect memcached You can then view the Memcache's configuration information via the Phpinfo function Source Link: http://www.wangzhanjianshegs.com/show-16-435-1.html website construction

Installing Memcache extensions under Linux

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.