Install PEAR with wamp server on windows

Install PEAR with WAMP server on windows 7 or windows 8 seems easy. First we have to install WAMP server. Make sure wamp is running fine.

  1. Download go-pear.phar file and place

  2. You should download go-pear.phar file from Official site. You can place this file in the following directory,

    (This above directory may be different, depend upon your version of PHP)

  3. change path in Command Prompt

  4. Open command prompt(CMD). How? just, rise up Window’s start menu, type CMD in search bar and then press Enter. For More
    Now we need to give go-pear.phar file path. For my path,

    cd C:\wamp\bin\php\php5.4.3

    Give your path and press enter. You can look like following screen.

    Change path in Command Prompt - steptoinstall

  5. Run go-pear.phar
  6. Now, You can run go-pear.phar file using following code.

    php go-pear.phar

  7. Next, that will ask you “Are you installing a system-wide PEAR or a local copy?”.

    Give your answer like “local” and press Enter.

    It’ll ask confirmation. Just give “yes” and press Enter.

    Install PEAR with wamp server on windows 7 or windows 8 - steptoinstall

  8. Set location
  9. You can see 12 files with default location and it’ll ask location change?
    If you wanna change, just give “all” and change that. Better, Set default one. For default location, press Enter.

    Install PEAR with wamp server on windows 7 or 8 - steptoinstall

  10. Alter php.ini
  11. Then you may get one WARNING. You have include the path of PEAR into php.ini . So, It’ll ask
    “Would you like to alter php.ini ? [Y/n] :”. Give “Y” and press Enter.

    Install PEAR with wamp server on windows 7 or windows 8 - Alter php.ini - steptoinstall

  12. Add Path Variable into your System.
  13. Goto Control Panel -> System and Security -> System -> Advanced system settings

    You’ll get System Properties window. There, select Advanced Tab and click Environment Variables…

    Here, you’ll get Environment Variables Window. Here, select PATH into ‘System Variables’ and click edit.

    Now you’ll get Edit system Variable Window. Here, Add you PEAR folder path with Semicolon. Don’t for forget, only add the path, not replace.
    For my path,


    click ‘OK’ and Save it.

    Install PEAR with wamp server on windows 7 or windows 8 - Add Path Variable into your System - steptoinstall

  14. Install PEAR with wamp server on windows 7

  15. Install PEAR with wamp server on windows 7 or windows 8 - installed - steptoinstall

    Close opened command prompt and open New CMD. Give “pear” command and press Enter. If PEAR running successfully, You’ll get PEAR’s list of commands. So you Installed PEAR.

    Install PEAR with wamp server on windows 7 or windows 8 - finished - steptoinstall


The following two tabs change content below.
I am Karthik, software engineer by profession. I'm giving some steps to installing, re-installing, updating, removing and any other related queries about software’s, operating systems, plug-ins and so on. You can find and follow me, from Social Media or here. Google+

11 Responses

  1. Karthik says:

    Superb article. Very helpful.Thanks buddy!

  2. Ralph says:

    very helpful, Thank you

  3. shekhar says:

    It Works! Thanx….

  4. Michael McCarthy says:

    I am running a wamp server on my Windows 64 bit 7 Home Premium SP1 pc. When I type php go-pear.php I get Could not open input file: go-pear.php error What am I doing wrong?

  5. Michael McCarthy says:

    Duh! Once I typed php go-pear.phar it worked. Thank you for this step by step instruction!

  6. Sree says:

    Good Tutorial..Thank you very much

  7. Adil says:


    Thanks for the detailed tutorial.
    I am running into one problem, I am not able to install any package.
    e.g I want to install “Net_UserAgent_Detect” package.
    I try the following command in the cammad prompt
    “pear install –alldeps Net_UserAgent_Detect”

    but I get the follwing error:
    ERROR: failed to mkdir C:\php\pear\tests\Net_UserAgent_Detect\tests

    I added the following variable path to

    I try it with adding pear at the end , remove the last “\”. but it always give the same error. can you please suggest any solution?

    Thanks in advance

  8. Ifor Williams says:

    Great article – very straightforward, thanks.

  9. Tunde Ojediran says:

    Very helpful article. Thanks a bunch!

  10. Jimmy AR. says:

    soy principiante el tutorial esta muy bien, mi problema fue no tener claro que version de php tenia para los comandos en cmd (php5.5.12) 😉 gracias.

  11. urvik says:

    gud work .
    It helped me.
    Keep it up.

Leave a Reply

Your email address will not be published. Required fields are marked *

Please Fill this Sum * Time limit is exhausted. Please reload CAPTCHA.