简体   繁体   中英

How to configure memcached on linux ami ec2 instance

I have linux ami running on ec2 instance, I am trying to install memcached but it failed display in "phpinfo()", here is what i have done so far.

installed memcached by :

yum install memcached

Added following line in my php.ini

extension=memcached.so

started memcached:

service memcached start

restarted apache

service httpd restart

When i do phpinfo(), memcached is not listed. please help.

You have installed the daemon, but not the php extension. You have two options.

  1. Install via package manager if available yum install php-pecl-memcached .
  2. Install via pecl pecl install memcached . You may need to install gcc and php-devel packages for this option to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM