Chinaunix首页 | 论坛 | 博客
  • 博客访问: 369498
  • 博文数量: 28
  • 博客积分: 455
  • 博客等级: 下士
  • 技术积分: 445
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-09 11:10
文章分类

全部博文(28)

文章存档

2016年(5)

2014年(1)

2013年(10)

2011年(7)

2010年(5)

我的朋友

分类: PHP

2013-07-27 23:09:05

1、下载go-pear.phar
 
2、运行命令
php go-pear.phar

(system|local) [system] : local
Please confirm local copy by typing 'yes' : yes
1-12, 'all' or Enter to continue:Enter

******************************************************************************
WARNING!  The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:

If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.

Would you like to alter php.ini ? [Y/n] :Y

3、安装完发现php.ini后面加了这么一行

点击(此处)折叠或打开

  1. ;***** Added by go-pear
  2. include_path=".;E:\lamp\php5.5.0\pear"
  3. ;*****

4、检查一下安装情况

点击(此处)折叠或打开

  1. E:\lamp\php5.5.0>pear version
  2. PEAR Version: 1.9.4
  3. PHP Version: 5.5.0
  4. Zend Engine Version: 2.5.0-dev
  5. Running on: Windows NT BLANK-PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64

5、安装log4php

先把那个 Apache_log4php-2.3.0.tgz 文件下载到本地,然后运行以下2个命令

pear channel-discover pear.apache.org/log4php

  1. pear install C:\Users\blank\Downloads\Apache_log4php-2.3.0.tgz





阅读(2166) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~