Install Php Pear In Windows Wamp Server

Posted on by

All the guides for installing PEAR on wampserver, such as the Symfony guide, say I am to run a go-pear.bat script within some PEAR directory. I am on wampserver 2.1 and there is no PEAR directory. Installing PEAR on Windows 7 seems simple; however, a few headaches with some recent versions of PHP can leave some people confused. The go-pear.bat file doesn’t exist in some 64x downloads of WAMP and PHP. By following these steps to workaround this issue, you should be able to get Pear installed.

Active2 years, 3 months ago

I am trying to install pear in wampserver. It doesn't come with a go-pear.bat.

I download the .phar file from pear.php.net/go-pear and run php go-pear.phar.

  • When using PHP, the PEAR Package Manager is already. Copy go-pear.php to your server and open the. I've tried to install by go-pear on Windows command line.
  • Step 1: install PEAR on WAMP server In CLI go to the path where you have installed PHP on the WAMP sever, for me is C: wamp bin php php5.4.12. Here you should have the go-par.phar file. If this file is not here you should get it from here and save it in the path where you have installed PHP and then run the following command.
  • Try this: Although a PEAR subdirectory is created during WAMP installation, PEAR is not included with the Wampserver. To install PEAR open a command prompt window (Start->Run->cmd.
  • I'm having problems installing pear on my local machine that has Wamp installed. Full setup as follows Windows XP Pro Wamp Server Version 2.0 php 5.3.0 I'm reading all over the net that pear has.
  • If you need to run php scripts on Windows Command Prompt, you will need to install PEAR. If you already have installed WAMP Server, then you already have a copy of php installed, which can be find in your wamp directory such as below: C: wamp bin php php5.5.12 Installing PEAR 1.

It just keeps looping over the config where I set all the paths.

What gives?

moesefmoesef
1,95913 gold badges40 silver badges65 bronze badges

3 Answers

Lets assume you are running PHP5.3.24 and wamp is installed on the C: drive, if not change the folder names accordingly.

Get go-pear.phar from http://pear.php.net/go-pear.phar and copy it to the wampbinphpphp5.3.24 folder

Do all this from a windows command window

When you get asked this question

To get it to proceed with the install you have to just PRESS the ENTER key

Its as simple as that

RiggsFollyRiggsFolly

I faced the same issue, if you scroll a bit back, you should see an error, probably you didn't fill the php.exe folder properly (number 12). Just type 12, press enter and navigate to you PHP installation folder (like C:/php). Then, after hitting enter, installation should start.

Pedro Lobito
54.1k17 gold badges148 silver badges179 bronze badges
johnnyjohnny

Type local after running php go-pear.phar.

Install Php Pear In Windows Wamp Server 32-bit

Then go with what Pedro Lobito said.

If the list shows again, just press Enter and installation should start.

Yuen TauYuen Tau

Not the answer you're looking for? Browse other questions tagged phpwamppear or ask your own question.

Active4 years, 7 months ago

All the guides for installing PEAR on wampserver, such as the Symfony guide, say I am to run a go-pear.bat script within some PEAR directory.

I am on wampserver 2.1 and there is no PEAR directory and no go-pear batch script to be found.

Liz carlyle Everybody else treats it like a game, too, and warns her not an arranged marriage jo beverley pdf let it go too far because it's on HER to keep HIM from feeling unwanted or something.

Is this just different because I have a newer version? Is there somewhere I can download these missing installation scripts?

KeyoKeyo
8,35315 gold badges63 silver badges105 bronze badges

Installing Wamp On Windows

6 Answers

It's not installed per default on all setups.

But you can download the plain go-pear script for that: http://pear.php.net/go-pear
Either invoke it with php.exe go-pear or run it through your webserver as regular .php script. (It has a nice installation GUI!)

mariomario
128k18 gold badges191 silver badges257 bronze badges

Rather new to pear myself, but my answer to a similar question:Running Wampserver 2.2 on Win7 Professional 64bit working with PHP 5.3.8 I have found a few issues with standard way of installing with go-pear. I downloaded the go-pear.phar and ran that via cmd with no deprecated errors etc.

Benjamin
17k31 gold badges134 silver badges246 bronze badges
David 'the bald ginger'David 'the bald ginger'
1,0213 gold badges18 silver badges36 bronze badges

you could also just go to the pear site, download the zips and unzip them in the correct local folders (wamp/bin/php)

we've just solved a similar problem like this, where a copy of a live site set up on a local machine was hitting errors because PEAR was not installed. The installation process was hitting errors so we just downloaded and unzipped PEAR and the required modules directly into the correct directory.

problem solved.

Toni LeighToni Leigh
3,4552 gold badges15 silver badges34 bronze badges

Firts export in the PATH system, add you folder with php, p.e. if you have php 5.4.x in your wamp system:

Create a new folder p.e.:

If your php version is 5.3 or or newer you can use pyrus.phar.

Using pyrus.phar to install pear

Export you PATH again:

you can use pear.bat, or pear.

Check: for more information:

fitorecfitorec

This worked for me on windows 7:

NOTE: Make sure you open command prompt window in administration mode.

Peter DrinnanPeter Drinnan

I downloaded the 32bit wamp and this includes the pear files. However it is best to install 1.9.2 by downloading go-pear.phar manually, as the default one didn't seem to work.

KeyoKeyo
8,35315 gold badges63 silver badges105 bronze badges

Wamp Server For Windows 10

Not the answer you're looking for? Browse other questions tagged phpwindowspearwamp or ask your own question.