Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>\bin\php\php5.3.8
We’ll call this path “PHP’s location” throughout this article.
- Download “go-pear.phar” from this location: pear.php.net/go-pear.phar
- Create a folder “pear” in your PHP’s location
- Put the downloaded “go-pear.phar” file in this location.
Open a command prompt with administrative privilege. For this, click on start menu, type “cmd” – you can see the cmd.exe icon. Right-click on this icon and click “Run as administrator”
Cmd.exe will open. Go to the direcotry of your PHP’s location, by typing “cd” command. For example, my wamp is located in “D:\wamp”, so I write following command:
D: cd wamp\bin\php\php5.3.8
Now run the downloaded file, by typing:
Installation will begin! During installation, you’ll need to respond to some prompts, just hit enter/press “Y” when necessary.
After installing, double-click and instal “PEAR_ENV.reg” found in your PHP’s location.
Optionally, you can add your PHP’s location in your PATH variable.