Monday, September 28, 2009

PHP Tidy on MAMP

Needed to install Tidy with MAMP. Some googling found a few solutions, none seemed to work. One caveat is that I am running on Snow Leopard and needed to back out PHP 5.3 to 5.2.

I use the Zend Studio IDE for development. My solution was the following:

- Goto the zend studio included tidy.so, mine was found at /Applications/Zend/Zend Studio - 7.0.0/plugins/org.zend.php.debug.debugger.macosx_5.2.26.v20090514/resources/php5/ext/tidy.so
- I copied the tidy.so to /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/tidy.so
- Open up the php.ini with MAMP, /Applications/MAMP/conf/php5/php.ini
- Add ''extension=tidy.so" to your php.ini file
- Restart Apache
- Tidy should now be available

No comments: