Install Pear and Phing on Wamp Server

FOR WAMPSERVER

Download http://pear.php.net/go-pear.phar

Go to C:\wamp\bin\php\php5.x.x\

Save go-pear.phar to the php directory then run:

php -d phar.require_hash=0 go-pear.phar

On Pear installation, select local install, enter till the part about modifying php.ini (N)

Run pear version to see if installation is successful

Next, right-click wamp server tray icon, then click PHP → php.ini

Uncomment include_path, set value to:
include_path = ".;C:\wamp\php\php5.x.x\pear"

Restart wamp server

If it does not work, change directory to C:\wamp\bin\php\php5.x.x\ then change php.ini
include_path = ".;C:\wamp\php\php5.x.x\pear"

Restart wamp server

Still inside php directory, run
pear channel-discover pear.phing.info
pear install phing/phing

If installation requires root permission run:
runas /user:Administrator cmd

where Administrator is the account username of the administrator

To run phing and pear from any directory, add the bat file to windows $PATH
PATH=%PATH%;C:\wamp\bin\php\php5.x.x\
PATH=%PATH%;C:\wamp\bin\php\php5.x.x\pear

or Go to Computer, right click, then Properties → Advance System Settings → Environment Variables.

To check and update phing version, run:
phing-v
pear upgrade phing/phing

RESOURCES:

Installing Propel:
http://propelorm.org/documentation/01-installation

Using Propel with WampServer
http://blog.leonardchallis.com/databases/using-propel-with-wampserver/

Comments

  1. Gracias, muchas gracias. Al fin un documento realmente Ăștil.
    Thank You v. m., at least a document really successful.
    Juan F.
    Ecuador.

    ReplyDelete
  2. Gracias, muchas gracias. Al fin un documento realmente Ăștil.
    Thank You v. m., AT LAST a document really successful. I was looking for this topic and all sites were complicated except this one.

    Juan F.
    Ecuador

    ReplyDelete
  3. Simple, straight forward and awesome. Thank you very much!

    ReplyDelete

Post a Comment