Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
在cpanel/WHM的centos主機上灌php的memcached擴展 – unethost無限空間虛擬主機 技術分享部落格

在cpanel/WHM的centos主機上灌php的memcached擴展

如果運氣好的話,用下方的指令就可以搞定了。
yum install php php-pecl-memcache

直接用yum install安裝,有時候會因為repo的問題而裝不起來。所以用tarball來裝,反而快。

Step 1 – 下載memcache
mkdir repo
cd repo
wget  http://pecl.php.net/get/memcache-3.0.6.tgz
tar -xvfz memcache-3.0.6.tgz

Step 2 – 編繹 & 安裝
cd memcache-3.0.6
phpize

這時候,應該會看到類似的訊息:
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
./configure
make
make install

Step 3 – 修改php.ini
在php中,啟用memcache
echo "extension=memcache.so" >> /usr/local/lib/php.ini
service httpd restart