Popoleo Designs ‘Leopard’

Installing PEAR on Mac OS X Leopard XAMPP

Monday, July 21st, 2008

XAMPP for Mac does come with PEAR but it is NOT configured.

Update PEAR
sudo su - [Enter root password]
cd /Applications/xampp/xamppfiles/lib/php/pear
sudo php pearcmd.php channel-update pear.php.net
sudo php pearcmd.php install PEAR
sudo php pearcmd.php install Log
sudo php pearcmd.php list

add PEAR to the php.ini include_path
Edit /Applications/xampp/etc/php.ini (include path is at the very end of the php.ini file)

include_path = “.:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear”

To install a package
Type
sudo su [Enter root password]
cd /Applications/xampp/xamppfiles/lib/php/pear
pear install pear/PACKAGE_NAME

Thats it, good luck.


Showing hidden Files on Mac OS X 10.5 Leopard

Wednesday, May 14th, 2008

After you get apache up and running on your Mac, you will not be able to see your .htaccess and other configuration files. Here is a quick fix for that problem.

Open Terminal and copy the following text-
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

You will notice you screen will blink as finder restarts. Once it come back on all you hidden files will be visable.

note: Change “TRUE” to “FALSE” to make them disappear again.

Open Terminal and copy the following text-
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder