1.
Open the Command window, switch to the PHP installation directory, execute the following command (you can also add a PHP environment variable, it is not so troublesome to switch directories, but I installed multiple versions of PHP, so there is no environment variable added).
2.
When the following sentence appears, you can directly press ENTER, if the last error, reinstall, here you can enter the local, I do not know why, because encountered a direct return, to the end but the installation is unsuccessful.
Is you installing a system-wide PEAR or a local copy?
(system|local) [System]:
3.
Here you can enter the corresponding data and change the directory location of the pear. Words there is no good change, not very familiar with, or directly enter the insurance point.
4.
Change the php.ini configuration file
Tip We want to change php.ini, of course, enter Y,
5.
Determine the Pear directory
Direct return
6.
Build environment variable Pear_env.reg file, double-click Import Registry
7.
At this point, enter Pear-v to view the version information, enter Pear list to view the installed packages
8.
Eventually:
Php-windows Installation Pear