PHP Installation pear Tutorial under Windows

  • 2021-07-22 09:14:54
  • OfStack

Because you need to install PHPUnit, you need to install pear first. Most online tutorials start with double-clicking go-pear. bat, but there is no such file in the php folder I installed.

After several searches, I finally found a solution. The solution steps are as follows:

1. Download the following connected file to go-pear. phar

http://pear.php.net/go-pear.phar

This file is best placed in the php directory, because after the next step is executed, many folders and files will be generated.

2. Execute php go-pear. phar

When executing on Windows, there is a problem with UAC, so you need to run CMD with administrator privileges.

3, 1-way Enter

Installation is complete, and you are done!

More detailed information can be obtained on the website of pear:

http://pear.php.net/manual/en/installation.getting.php


Related articles: