Windows + APMServ5.2.6/PHP5以上

安装步骤:

1、Windows的开始 -> 运行 ->cmd

2、安装命令d:

cd D:\APMServ5.2.6\PHP

D:\APMServ5.2.6\PHP>go-pear.bat

Are you installing a system-wide PEAR or a local copy?

(system|local) [system] : 敲击回车键 (Enter)

Below is a suggested file layout for your new PEAR installation.  To

change individual locations, type the number in front of the

directory.  Type ‘all’ to change all of them or simply press Enter to

accept these locations.

1. Installation base ($prefix)                   : D:\APMServ5.2.6\PHP

2. Temporary directory for processing            : D:\APMServ5.2.6\PHP\tmp

3. Temporary directory for downloads             : D:\APMServ5.2.6\PHP\tmp

4. Binaries directory                            : D:\APMServ5.2.6\PHP

5. PHP code directory ($php_dir)                 : D:\APMServ5.2.6\PHP\pear

6. Documentation directory                       : D:\APMServ5.2.6\PHP\docs

7. Data directory                                : D:\APMServ5.2.6\PHP\data

8. User-modifiable configuration files directory : D:\APMServ5.2.6\PHP\cfg

9. Public Web Files directory                    : D:\APMServ5.2.6\PHP\www

10. Tests directory                               : D:\APMServ5.2.6\PHP\tests

11. Name of configuration file                    : D:\APMServ5.2.6\PHP\pear.ini

12. Path to CLI php.exe                           : D:\APMServ5.2.6\PHP\.

1-12, ‘all’ or Enter to continue:  输入all

Installation base ($prefix) [D:\APMServ5.2.6\PHP] :

Temporary directory for processing [$prefix\tmp] :

Temporary directory for downloads [$prefix\tmp] :

Binaries directory [$prefix] :

PHP code directory ($php_dir) [$prefix\pear] :

Documentation directory [$prefix\docs] :

Data directory [$prefix\data] :

User-modifiable configuration files directory [$prefix\cfg] :

Public Web Files directory [$prefix\www] :

Tests directory [$prefix\tests] :

Name of configuration file [D:\APMServ5.2.6\PHP\pear.ini] :

Path to CLI php.exe [D:\APMServ5.2.6\PHP\.] :

一直回车,即可

此时D:\APMServ5.2.6\PHP 会多出一个文件 pws-php5isapi.reg ,双击,确定,关闭控制台窗口,新打开一个cmd。D:\APMServ5.2.6\PHP>pear -V

PEAR Version: 1.7.1

PHP Version: 5.2.6

Zend Engine Version: 2.2.0

Running on: Windows NT 5EC44E99C71645F 5.1 build 2600

ok,安装成功,不过别高兴的太早了,还有升级呢…不然无法安装后续的PHPUnit!

安装PHPUnitD:\APMServ5.2.6\PHP>pear list

INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:

=========================================

PACKAGE          VERSION STATE

Archive_Tar      1.3.3   stable

Console_Getopt   1.2.3   stable

Image_GraphViz   1.2.1   stable

Log              1.11.5  stable

PEAR             1.9.0   stable

Structures_Graph 1.0.3   stable

XML_Util         1.2.1   stable

没有以上安装包的请你先安装,比如你没有安装Image_GraphViz 和Log,请输入以下指令:D:\APMServ5.2.6\PHP>pear install Image_GraphViz

D:\APMServ5.2.6\PHP>pear install Log

安装成功后,再输入以下指令:D:\APMServ5.2.6\PHP>pear upgrade-all

Will upgrade channel://pear.php.net/archive_tar

Will upgrade channel://pear.php.net/structures_graph

Will upgrade channel://pear.php.net/pear

downloading Archive_Tar-1.3.3.tgz …

Starting to download Archive_Tar-1.3.3.tgz (18,119 bytes)

……done: 18,119 bytes

downloading Structures_Graph-1.0.3.tgz …

Starting to download Structures_Graph-1.0.3.tgz (30,191 bytes)

…done: 30,191 bytes

downloading PEAR-1.9.0.tgz …

Starting to download PEAR-1.9.0.tgz (291,634 bytes)

…done: 291,634 bytes

upgrade-all ok: channel://pear.php.net/Archive_Tar-1.3.3

upgrade-all ok: channel://pear.php.net/Structures_Graph-1.0.3

upgrade-all ok: channel://pear.php.net/PEAR-1.9.0

PEAR: Optional feature webinstaller available (PEAR’s web-based installer)

PEAR: Optional feature gtkinstaller available (PEAR’s PHP-GTK-based installer)

PEAR: Optional feature gtk2installer available (PEAR’s PHP-GTK2-based installer)

PEAR: To install optional features use “pear install pear/PEAR#featurename”

好的,如果你到达这一步,恭喜你成功即将离你不远。D:\APMServ5.2.6\PHP>pear channel-discover pear.phpunit.de

D:\APMServ5.2.6\PHP>pear install phpunit/PHPUnit

如果这两个都没有出错的话,D:\APMServ5.2.6\PHP目录下会出现以下四个文件:phpunit.bat

phpunit

dbunit.bat

dbunit

好了,检测安装是否成功。

校验安装D:\APMServ5.2.6\PHP>pear -V

PEAR Version: 1.9.0

PHP Version: 5.2.6

Zend Engine Version: 2.2.0

Running on: Windows NT 5EC44E99C71645F 5.1 build 2600D:\APMServ5.2.6\PHP>phpunit –version

PHPUnit 3.4.5 by Sebastian Bergmann.

注意如果不成功的话,请使用d:

cd D:\APMServ5.2.6\PHP

D:\APMServ5.2.6\PHP>phpunit.bat

另外为了避免每次这样启动,建议你讲D:\APMServ5.2.6\PHP\phpunit.bat 加入环境变量PATH,dbunit亦如此。

好了,安装教程就到此处,有问题的请留言。

apmserv 5.2.6 升级php,Windows + APMServ5.2.6/PHP5以上相关推荐

  1. Windows Server 2003 AD升级到Windows Server 2008 AD的方法及详细步骤

    前言: Windows Server 2008 是现在企业比较流行的服务器操作系统,安全性高,配置灵活.方便,集成了Hyper-V虚拟化功能,能够充分发挥硬件的性能.Windows Server 20 ...

  2. windows server2003 升级到windows server2012

    微软已经确认将在2015年7月14日停止对windows server2003的支持,尽管到了最后期限还是有一些企业仍然使用windows server2003 ,如果微软停止对其更新的话,那么企业的 ...

  3. Windows 2003 AD升级到 Windows 2008 AD

    这段时间做了一个2003 AD 升级2008AD的实验,把过程写下来和大家一起分享 下面是一张实验图环境是这样的; 现有一家企业AD基础架构是win2003 AD,希望获得更多的功能,决定把现有的20 ...

  4. 超过一半的受访者表示愿意升级到Windows 11

    Windows 11系统即将正式推出,最近外媒WindowsReport针对Windows 11进行了一个小调查,超过一半的人表示他们计划升级到Windows 11. WindowsReport给出的 ...

  5. 升级到Windows 8.1

    Windows 8.1的RTM已经发布,今天下载后,将我所使用的Windows 8 x64企业版升级到了Windows 8.1的企业版,升级过程比较顺利,大约花了1小时的时间,升级之后搜狗五笔保留.极 ...

  6. 不止 Windows 10!Windows 7/8 也能免费升级到 Windows 11

    起初,微软宣布为 Windows 7.Windows 8 和 Windows 8.1 用户提供的 Windows 10 免费升级于 2016 年结束. Windows 11 免费升级 近日,微软表示将 ...

  7. 升级了 Windows 11 正式版,有坑吗?

    作者 | 王磊 来源 | Java中文社群(ID:javacn666) 转载请联系授权(微信ID:GG_Stone) 今天磊哥去公司上班,惊喜的发现 Windows 提示更新了,并且是 Windows ...

  8. 服务器系统2008能升级2012吗,将 Windows Server 2008 R2 升级到 Windows Server 2012 R2

    将 Windows Server 2008 R2 升级到 Windows Server 2012 R2 09/16/2019 本文内容 如果要保留相同的硬件和已设置的所有服务器角色而不平展服务器,则需 ...

  9. Windows Serer2003域升级到Windows Server2008R2域

    Windows Serer2003域升级到Windows Server2008R2域 近期,公司采购了一台新的服务器来替换原来老的Windows Server2003 DC服务器(老的服务器既是DC又 ...

最新文章

  1. ​Highmaps网页图表教程之绘图区显示标签显示数据标签定位
  2. matlab Normally distributed random numbers in two columns
  3. HashMap 的性能因子
  4. 页面缓存js问题解决
  5. 计算机论文搜索技巧【一】
  6. 作者:周武柏,男,美国佛罗里达国际大学计算机科学博士生,南京邮电大学计算机学院大数据项目组成员。...
  7. 作者:顾佳峰(1975-),男,博士,北京大学中国社会科学调查中心研究发展部主任,北京大学创新研究院副院长。...
  8. 如何愉快地学习 Go 语言?来场 Go 之旅吧!
  9. Postman系列之发送不同HTTP类型请求
  10. php美顏滤镜,PHP GIF / PNG True Colorize滤镜,可保留亮度和Alpha
  11. Java 多线程编程两个简单的例子
  12. Java常见排序算法之快速排序详解
  13. [OS X軟件] 我一直在用的 司机会看的那种 免费资源又多
  14. 【提升笔记本续航】WIN10笔记本打开电源选项中的处理器电源管理
  15. 京东店铺托管引流技巧有哪些?
  16. 双鱼林php学生信息管理系统,双鱼林基于ThinkPHP5图书管理系统demo v1.0
  17. 震惊:这样投简历才有效,你竟然不知道?
  18. scram-sha1
  19. 大数据数据科学家常用面试题_想要成为数据科学家,解决数据科学面试的简单指南...
  20. 天津私立学校计算机教师工资,私立中学教师工资真的高,平均年薪收入最少20万...

热门文章

  1. mockplus模板_UI设计工具比较:Sketch、Adobe XD、墨刀、Mockplus、Axure RP
  2. hdmi网线延长器_HDMI单网线延长器的制作方法
  3. Qt 之字体文件(TTF)
  4. Cannot resolve method ‘subscribe(anonymous io.reactivex.Observer<xxx>)‘的解决方案
  5. 个人域名和企业域名的区别
  6. 在hadoop中伪分布式部署的命令与步骤
  7. 第四章 OAuth2.0规范(史上最详细解释)——获得授权
  8. 「Jenkins Pipeline」- expected to call xxx but wound up catching xxx @20210219
  9. Catching Cheaters (LCS变形)
  10. 【RMF】ros机器人中间件框架学习系列一:了解原理