우분투16 php-memcache 설치

  다른 뜻에 대해서는 우분투14 php5-memcached 설치 문서를 참조하십시오.

1 개요[ | ]

PHP Fatal error: Uncaught Error: Class 'Memcache' not found
우분투16 php-memcache 설치
  • ※ 'php-memcached'와는 다른 라이브러리이므로 혼동하지 말자

2 확인[ | ]

root@zeta:~# php -m | grep memcache
root@zeta:~# php -r "new Memcache;"
PHP Fatal error:  Uncaught Error: Class 'Memcache' not found in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1
root@zeta:~# apt list php-memcache
Listing... Done
php-memcache/trusty 3.0.9~20160311.4991c2f-6+deb.sury.org~trusty+1 amd64

3 설치[ | ]

root@zeta:~# apt install php-memcache
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php-memcache
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 95.5 kB of archives.
After this operation, 549 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu/ trusty/main php-memcache amd64 3.0.9~20160311.4991c2f-6+deb.sury.org~trusty+1 [95.5 kB]
Fetched 95.5 kB in 1s (54.3 kB/s)       
Selecting previously unselected package php-memcache.
(Reading database ... 103598 files and directories currently installed.)
Preparing to unpack .../php-memcache_3.0.9~20160311.4991c2f-6+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php-memcache (3.0.9~20160311.4991c2f-6+deb.sury.org~trusty+1) .................] 
Setting up php-memcache (3.0.9~20160311.4991c2f-6+deb.sury.org~trusty+1) ................]

4 확인 2[ | ]

root@zeta:~# apt list php-memcache
Listing... Done
php-memcache/trusty,now 3.0.9~20160311.4991c2f-6+deb.sury.org~trusty+1 amd64 [installed]
root@zeta:~# php -r "new Memcache;"
root@zeta:~# php -m | grep memcache
memcache

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}