JavaScript Editor Javascript validator     Web page editor 

Getting the manager


After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:\php\go-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specified during installation. Finally you have to add that installation path to your PATH environment. Either do this manually (Start > Control Panel > System > Environment) or run (double-click) the newly generated PEAR_ENV.reg that's now found in the PHP source directory. After that you can access the PEAR Package Manager by running the command pear in a Windows Command Prompt.

To update your PEAR installation, request in your browser and save the output to a local file go-pear.php. You can then run

php go-pear.php
in a Windows Command Prompt to start the update process.

Note: After changing php.ini, you need to restart your web server.

Now check that PEAR works.


When using PHP >= 4.3.0, the PEAR Package Manager is already installed unless one has used the ./configure option --without-pear.

If one uses a version of PHP that is supplied by Unix/Linux/BSD distributors it may be necessary to manually install PEAR. Users should consult the documentation for the respective distribution in this case.

For all versions prior to 4.3.0 or if you want to re-install the Package Manager, you can use the following provisional way:

$ lynx -source | php

Now check that PEAR works.

Mac OS X

On Mac OS 10.4 and earlier, the PEAR Package Manager is already installed in /usr/bin/pear.

If you are using Mac OS 10.5 (Leopard), would like to install a new copy, or re-install the PEAR Package Manager use the following command:

$ curl | sudo php

Now check that PEAR works.

PEAR in hosting environments

If you are running your site at a web hosting provider with no direct access to the server (via local logins, Telnet or SSH), you can use the PEAR Installer using the Web Frontend.

Go to and save as go-pear.php. Copy go-pear.php to your server and open the corresponding URL in your browser, for example


Do not forget to protect the pear directory if you did not do already before the installation.

Now check that PEAR works.

JavaScript Editor Javascript validator     Web page editor