//Compile and install php 5.3.3
Since php5.3.X already comes with php-fpm, no patch is required
# sudo ./configure --prefix=/usr/local/php-5.3.3 --with -mcrypt --with-gettext --with-mysql --with-gd --with-jpeg-dir --with-png-dir --with-curl --with-freetype-dir --enable-gd-native -ttf --enable-mbstring --enable-sockets --with-png-dir --with-pdo-mysql --enable-fpm --with-zlib --with-fpm-user=daemon --with-fpm -group=daemon
# sudo rm -rf /usr/local/php-5.3.3
# sudo make
# sudo make install
//Compile and install memcache
sudo /usr/local/php-5.3.3/bin/ phpize
sudo ./configure --with-php-c/local/php-5.3.3/bin/php-config
//Modify the php.ini configuration file
Add:
extension_dir = "/usr/local/php- 5.3.3/lib/php/extensions/no-debug-non-zts-20090626/"
extension=memcache.so
The above introduces the method of compiling and installing php 533+memcache with Memcached ubuntu, including Memcached content. I hope it will be helpful to friends who are interested in PHP tutorials.