win2008 iis7 安装pear
安装环境:windows2008+php5.2.6+iis7
1、确认php目录下是否有pear/go-pear.phar。用install安装的php,没有pear/go-pear.phar,可以打开 http://pear.php.net/go-pear.phar ,把里面的内容复制另存到php目录pear/go-pear.phar 。
2.开始-运行-cmd-输入 php pear/go-pear.phar。没有把php目录加入环境变量的请先切换到该目录下。提示
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :直接默认回车
显示
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:\php
2. Temporary directory for processing : d:\php\tmp
3. Temporary directory for downloads : d:\php\tmp
4. Binaries directory : d:\php
5. PHP code directory ($php_dir) : d:\php\pear
6. Documentation directory : d:\php\docs
7. Data directory : d:\php\data
8. User-modifiable configuration files directory : d:\php\cfg
9. Public Web Files directory : d:\php\www
10. Tests directory : d:\php\tests
11. Name of configuration file : C:\Windows\pear.ini
12. Path to CLI php.exe : d:\php
1-12, ‘all’ or Enter to continue:
可以按1修改pear安装路径,比如修改为d:\pear,按11修改为d:\pear\pear.ini,完成后按enter确认。
Beginning install…
Configuration written to d:\pear\pear.ini…
Initialized registry…
Preparing to install…
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.2.tar…
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.3.tar…
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.7.1.tar…
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar.
..
pear/PEAR can optionally use package “pear/XML_RPC” (version >= 1.4.0)
install ok: channel://pear.php.net/Archive_Tar-1.3.2
install ok: channel://pear.php.net/Console_Getopt-1.2.3
install ok: channel://pear.php.net/Structures_Graph-1.0.2
install ok: channel://pear.php.net/PEAR-1.7.1
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”
******************************************************************************
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<D:\pear\pear>
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 <D:\php\php.ini>? [Y/n] :
选Y修改php.ini
列出当前php.ini配置
php.ini <D:\php\php.ini> include_path updated.
Current include path : .;C:\php5\pear
Configured directory : D:\pear\pear
Currently used php.ini (guess) : D:\php\php.ini
Press Enter to continue:
回车
** WARNING! Old version found at D:\pear, please remove it or be sure to use the
new d:\pear\pear.bat command
The ‘pear’ command is now at your service at d:\pear\pear.bat
** The ‘pear’ command is not currently in your PATH, so you need to
** use ‘d:\pear\pear.bat’ until you have added
** ‘D:\pear’ to your PATH environment variable.
Run it without parameters to see the available actions, try ‘pear list’
to see what packages are installed, or ‘pear help’ for help.
For more information about PEAR, see:
http://pear.php.net/faq.php
http://pear.php.net/manual/
Thanks for using go-pear!
* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under D:\pear\PEAR_ENV.reg .
This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
双击 D:\pear\PEAR_ENV.reg ,将 D:\pear加入到当前用户环境变量中。
安装完成!
最新评论