php编译安装升级
来源:互联网 发布:淘宝网蓝月亮洗衣液 编辑:程序博客网 时间:2024/06/05 03:12
升级php至5.6
1、重命名之前版本的安装路径/usr/local/php/ 为 /usr/local/php20170504/
2、下载php5.6
cd /usr/local/srcwget http://www.php.net/distributions/php-5.6.22.tar.gz
3、解压
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --disable-fileinfo
5、修改php-fpm配置文件
cd /usr/local/php/etc/mv php-fpm.conf.default php-fpm.conf
6、将nginx下的所有.conf文件里的
fastcgi_pass unix:/tmp/php-cgi.sock
改成fastcgi_pass 127.0.0.1:9000;
7、重启
cp /usr/src/php-5.6.22/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpmchmod +x /etc/init.d/php-fpm/etc/init.d/php-fpm restart #或者service php-fpm restartservice nginx restart
注: /usr/local/php/bin/php -i | grep php.ini #查询php当前加载的是哪个路径下的php.ini
0 0
- php编译安装升级
- 对编译安装的PHP进行升级
- php centos编译安装,单个升级安装库(mysql.so,pdo.so)
- 编译安装升级openssh小结
- linux下php快速升级 5.2.6(1)用yum(2)重新编译安装
- Centos6、7/Linux 下编译安装 PHP 5.6(升级版本)
- PHP编译安装
- php编译安装参数
- PHP编译安装方法
- 编译安装php
- PHP编译安装
- Centos6 编译安装PHP
- 编译安装PHP
- php编译安装常见问题
- PHP编译安装扩展
- PHP编译安装
- php源码编译安装
- Php编译安装步骤
- caffe深度学习(一)fine-tune
- 话说对ubuntu不同环境变量的切换问题和apm编译的后续
- 玩转java多线程学习篇四 Thread类的常用API之currentThread,isAlive,sleep,interrupt,isInterrupted,stop
- TComPicYuv、TComPic、TComPicSym、TComDataCU以及TComYuv的关系
- 撸了隔壁的网,满足一下窝的偷窥癖
- php编译安装升级
- 锁(三) 完成量
- 复习UNITY3D网络模块UNET
- angularjs指令中的compile与link函数详解
- Postgres psql: FATAL: Peer authentication failed for user "xxx"
- VS2005这么设置工作路径让找到动态库方便项目管理
- openglesForC++绘制草地
- <Android> 常用ADB调试命令
- linux服务器安装MYSQL