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后面加了这么一行
-
;***** Added by go-pear
-
include_path=".;E:\lamp\php5.5.0\pear"
-
;*****
4、检查一下安装情况
-
E:\lamp\php5.5.0>pear version
-
PEAR Version: 1.9.4
-
PHP Version: 5.5.0
-
Zend Engine Version: 2.5.0-dev
-
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
-
pear install C:\Users\blank\Downloads\Apache_log4php-2.3.0.tgz
阅读(2177) | 评论(0) | 转发(0) |