XAMPP is used by Windows users to simulate the LAMP stack.
The most common thing that I need to do is install PEAR packages for my various projects / experiments. On Linux box its simple – on Windows with XAMPP you do some preparatory steps first.
I am using xampplite on Windows 7 but, you can follow these steps for xampp and Windows vista too.
This is the version of my xampp: XAMPP for Windows Version 1.7.1
Steps:
- Add your PHP installation path to your PATH environment variable. Mine is C:\xampplite\php – this path can change as per your installation
- Open the command prompt and go to C:\xampplite\php
- Double click the go-pear.bat file and follow the installation steps (I chose system and just pressed enter for all the steps leaving everything else as it is)
- At the end of the installation a new file ‘pear.bat‘ will be created in php folder
- The go-pear installation would have also updated your php.ini file to add the PEAR path to the include_path variable – still, we need to verify it.
- Open you php.ini file (in the php folder) and search for include_path. Ensure that your PEAR folder is there in this path. My final include_path looks like this:
include_path=”.;C:\xampplite\php\pear;C:\xampplite\php\PEAR\” - Restart your Apache and start a fresh command prompt screen
- Now, you can use the ‘pear‘ command to install your PEAR packages.
For example, I installed the Digg package like this:
pear install Services_Digg2-alpha - That’s it! You should be able to use your PEAR package in your scripts.
Incoming search terms:
- instalar pear en xampp
- php pear extensions on xampp
- activar pear en xampp
- how to enable pear on xampp linux
- pear xampp windows 7
- xampp 1 7 7 install pear package
- xampp lite pear
- xampp pear windows






