Home > Backend Development > PHP Tutorial > How to compile and install php 5.3.3+memcache on ubuntu_PHP tutorial

How to compile and install php 5.3.3+memcache on ubuntu_PHP tutorial

WBOY
Release: 2016-07-21 15:34:49
Original
819 people have browsed it

//Compile and install php 5.3.3

Since php5.3.X already comes with php-fpm, there is no need to patch

# 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-config=/usr/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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322356.htmlTechArticle//Compile and install php 5.3.3 Since php5.3.X already comes with php-fpm, there is no need Patch# sudo ./configure --prefix=/usr/local/php-5.3.3 --with-mcrypt --with-gettext --with-mysql --wit...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template