ubuntu 编译安装php 5.3.3+memcache的方法_PHP
程序员文章站
2022-03-21 13:35:59
...
Ubuntumemcache
//编译安装php 5.3.3
由于php5.3.X已经自带了php-fpm所以不需要打补丁
# 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
//编译安装 memcache
sudo /usr/local/php-5.3.3/bin/phpize
sudo ./configure --with-php-config=/usr/local/php-5.3.3/bin/php-config
//修改php.ini配置文件
添加:
extension_dir = "/usr/local/php-5.3.3/lib/php/extensions/no-debug-non-zts-20090626/"
extension=memcache.so
由于php5.3.X已经自带了php-fpm所以不需要打补丁
# 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
//编译安装 memcache
sudo /usr/local/php-5.3.3/bin/phpize
sudo ./configure --with-php-config=/usr/local/php-5.3.3/bin/php-config
//修改php.ini配置文件
添加:
extension_dir = "/usr/local/php-5.3.3/lib/php/extensions/no-debug-non-zts-20090626/"
extension=memcache.so
上一篇: php ss7.5的数据调用 (笔记)_php技巧
下一篇: php二维码生成_PHP