Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To install PEAR on wampserver, follow these steps:

  1. Download the PEAR package from the official website: https://pear.php.net/

  2. Extract the downloaded PEAR package to a temporary directory.

  3. Open a command prompt and navigate to the directory where you extracted the PEAR package.

  4. Run the command "php go-pear.phar". This will start the installation process.

  5. Follow the installation wizard and enter the necessary information when prompted. Keep the default settings unless you know what you are doing.

  6. After the installation is complete, add the PEAR directory to your PHP include path. To do this, open your PHP.ini file and add the following line at the end: "include_path = "C:\wamp\bin\php\phpX.Y.Z\PEAR" (replace X.Y.Z with the version of PHP you are using).

  7. Restart your Apache server.

  8. To confirm that PEAR is installed correctly, run the command "pear version" in the command prompt. You should see the version number of PEAR displayed.