apt-get update
apt-get install libpcre3-dev #an APC dependency
apt-get install php5-cli
apt-get install php5-dev
wget http://pear.php.net/go-pear.phar #downloading pear, the php package manager
php go-pear.phar #installing pear
pecl install apc
vim /etc/php5/apache2/php.ini #edit your php.ini and add extension=apc.so
/etc/init.d/apache2 restart #restart apache to reload your php.ini file
评论
发表评论