php升级
2016-07-19 10:49
471 查看
1.要使用lumen的单元测试
https://lumen.laravel.com/docs/5.2/testing
·使用单元测试:cd 项目目录 , phpunit tests
里面需要使用phpunit
https://phpunit.de/manual/current/zh_cn/installation.html
phpunit推荐使用5.6以上的php版本,现在使用的是php5.5,因此涉及到php升级, 下面列举一下升级的过程:
1. 查看现在配的的php有哪些配置
2. 下载最新版本php5.6.3 并且解压
3. 移动旧的php
5. 安装过程参考
http://blog.csdn.net/ebw123/article/details/41875255
https://lumen.laravel.com/docs/5.2/testing
·使用单元测试:cd 项目目录 , phpunit tests
里面需要使用phpunit
https://phpunit.de/manual/current/zh_cn/installation.html
phpunit推荐使用5.6以上的php版本,现在使用的是php5.5,因此涉及到php升级, 下面列举一下升级的过程:
1. 查看现在配的的php有哪些配置
php -i | grep configure './configure' '--prefix=/usr/local/app/php' '--enable-mbstring' '--with-gettext' '--with-jpeg-dir=//usr/lo cal/libjpeg' '--with-png-dir' '--with-freetype-dir=/usr/include/freetype2/freetype/' '--enable-bcmath' '--with-mysqli=mysqlnd' '- -with-mysql=mysqlnd' '--enable-calendar' '--enable-fpm' '--with-libdir=lib64' '--enable-ftp' '--enable-sockets' '--with-bz2' '--w ith-curl' '--with-gd' '--with-openssl' '--with-pdo-mysql=mysqlnd'
2. 下载最新版本php5.6.3 并且解压
wget http://www.php.net/distributions/php-5.6.3.tar.gz tar -zxvf php-5.6.3.tar.gz
3. 移动旧的php
mv /usr/local/app/php /usr/local/app/php5.5.144.编译安装
./configure '--prefix=/usr/local/app/php' '--enable-mbstring' '--with-gettext' '--with-jpeg-dir=//usr/local/libjpeg' '--with-png-dir' '--with-freetype-dir=/usr/include/freetype2/freetype/' '--enable-bcmath' '--with-mysqli=mysqlnd' '--with-mysql=mysqlnd' '--enable-calendar' '--enable-fpm' '--with-libdir=lib64' '--enable-ftp' '--enable-sockets' '--with-bz2' '--with-curl' '--with-gd' '--with-openssl' '--with-pdo-mysql=mysqlnd'
make && make install
5. 安装过程参考
http://blog.csdn.net/ebw123/article/details/41875255
相关文章推荐
- 530 Non-anonymous session must use encryption FTP连接出现的问题
- 一些php魔术方法;
- thinkphp 页面提交参数的过滤(转义)
- PHP实现数组array转换成xml的方法
- PHPunit和CI框架整合
- Laravel 资源汇总
- Thinkphp 连接数据库、查询、添加
- 分析PHP的死锁问题
- PhpStorm中如何使用Xdebug工具,入门级操作方法
- PHP利用超级全局变量$_POST来接收表单数据。
- 2.PHP-开发环境,开发工具,数据库管理
- Solaris 10 开启/关闭SFTP服务、SSH服务
- Solaris 10 开启FTP服务
- Ubuntu下PHP的扩展
- php定时任务
- PHP中Socket连接及读写数据超时问题分析
- 10. PHP 图像填充 imagefill、imagefilledarc 与 imagefilledrectangle() 函数
- 9. PHP 绘制线段与圆弧 imageline、imagesetstyle 与 imagearc 函数
- 8. PHP 合并图像 imagecopymerge 函数(水印制作实例)
- 在PHP语言中使用JSON和将json还原成数组的方法