HOWTO: Enable PEAR on OS-X XAMPP

PEAR is comming out with XAMPP but it is not installed by default. Here you’ll find how to install it easily.

cd /Applications/xampp/xamppfiles/lib/php/pear
sudo php pearcmd.php channel-update pear.php.net
sudo php pearcmd.php install PEAR

Edit /Applications/xampp/etc/php.ini and at the very end of the file note the lines:

1133 ;***** Added by go-pear
1134 include_path=".:/Applications/xampp/xamppfiles/lib/php"
1135 ;*****

change the configuration to read:

include_path = ".:/Applications/xampp/xamppfiles/lib/php
                 :/Applications/xampp/xamppfiles/lib/php/pear"

restart mammp

thanks to freshblurbs

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.