Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Setting up PHP on OS X Leopard
Mar 06, 2009 @ 13:57:23

Rob Allen has made a new post to his blog today showing how he set up PHP (with MySQL, Apache and a few other extensions) on his OS X (Leopard) system.

In the vein of some of Lorna's articles, this is more a note for myself than anything else. Not everything is explained in detail as it assumes you know how to use a command line...These are the steps I take to get the Apple supplied PHP working with GD, PDO_MySQL and Xdebug working on OS X 10.5.

He show how to: run Apache in 32 bit mode, download and install MySQL, setup and configure Apache, changes values in the php.ini and install the other extensions (like XDebug and the GD library). He uses the latest PHP 5 distribution at the time - PHP 5.2.6 - but these instructions should work for any in the PHP 5.x series you might want to use.

tagged: osx leopard mysql apache setup install gs xdebug phpunit

Link:

SugarCRM Developers Blog:
Enabling IMAP support under OS X Leopard
Aug 28, 2008 @ 17:05:01

John Mertic passed along a note about a new post to the SugarCRM developers blog detailing how to enable IMAP support for PHP on an OS X machine.

With the release of Mac OS X 10.5 Leopard last fall, Apple (finally) included a modern version of PHP (currently version 5.2.6 as of this writing). [...] However, the default install of PHP that Apple included didn't include all of the available PHP extensions. Most notable is the IMAP extension, which is used in SugarCRM for the Campaigns and Emails modules. However you can build this extension and have it loaded dynamically, without affecting the rest of the default PHP install.

He shows where to get the packages and libraries you'll need to get the support working. The method involves building a shared module and including it to be loaded in your php.ini. This way it doesn't disrupt anything the current build has and you don't have to recompile everything over again.

tagged: imap support leopard osx shared module compile

Link:

Havard Eide's Blog:
Leopard and PHP
Jan 14, 2008 @ 18:08:00

Havard Eide is asking for your help in a new entry to his blog. He's looking for ways to speed up his development in Eclipse, specifically in the debugging.

There is one thing I do need over everything else: remote debugging. Having used Zend Studio for 3 years now it hasn't been the best editor ( I'd rather prefer PHPEclipse/PDT ) but the remote debugging facility is superb [...] Eclipse it has all the tools you need to develop with but the debugging is slow, way too slow!

He's looking for anyone out there that might be able to help him speed up the debugging on his Leopard-installed version of Eclipse ("So slow actually that I had to install Zend Studio 5.5 for whenever I have to debug a file...")

tagged: leopard osx mac zendcore eclipse debugging leopard osx mac zendcore eclipse debugging

Link:

Havard Eide's Blog:
Leopard and PHP
Jan 14, 2008 @ 18:08:00

Havard Eide is asking for your help in a new entry to his blog. He's looking for ways to speed up his development in Eclipse, specifically in the debugging.

There is one thing I do need over everything else: remote debugging. Having used Zend Studio for 3 years now it hasn't been the best editor ( I'd rather prefer PHPEclipse/PDT ) but the remote debugging facility is superb [...] Eclipse it has all the tools you need to develop with but the debugging is slow, way too slow!

He's looking for anyone out there that might be able to help him speed up the debugging on his Leopard-installed version of Eclipse ("So slow actually that I had to install Zend Studio 5.5 for whenever I have to debug a file...")

tagged: leopard osx mac zendcore eclipse debugging leopard osx mac zendcore eclipse debugging

Link:

Sean Coates' Blog:
php-5.2.5 on Leopard
Nov 26, 2007 @ 14:45:00

In a recent entry, Sean Coates shares some tips he found when working on a project (the redesign of the php|architect website) and trying to set up a development environment on his Mac in the latest version of Apple's operating system - Leopard.

There are a bunch of things wrong with Leopard, but over all I'm pretty happy with it. I did, however, have a bit of a hard time getting my development environment up and running (I did a clean install). I'll outline the steps that I took to get a functioning Apache, PHP, MySQL installed. Sure, you could use the leopard-bundled Apache and PHP, but if you're like me, you generally upgrade PHP (and use weird extensions) a lot more often than Apple will upgrade it.

He walks through the entire installation, complete with the commands that'll need to be made to both make the install and configure the Apache instance to work with PHP.

tagged: leopard osx install compile mac leopard osx install compile mac

Link:

Sean Coates' Blog:
php-5.2.5 on Leopard
Nov 26, 2007 @ 14:45:00

In a recent entry, Sean Coates shares some tips he found when working on a project (the redesign of the php|architect website) and trying to set up a development environment on his Mac in the latest version of Apple's operating system - Leopard.

There are a bunch of things wrong with Leopard, but over all I'm pretty happy with it. I did, however, have a bit of a hard time getting my development environment up and running (I did a clean install). I'll outline the steps that I took to get a functioning Apache, PHP, MySQL installed. Sure, you could use the leopard-bundled Apache and PHP, but if you're like me, you generally upgrade PHP (and use weird extensions) a lot more often than Apple will upgrade it.

He walks through the entire installation, complete with the commands that'll need to be made to both make the install and configure the Apache instance to work with PHP.

tagged: leopard osx install compile mac leopard osx install compile mac

Link:

Wez Furlong's Blog:
PHP Objective-C Bridge
Nov 05, 2007 @ 18:04:00

Wez Furlong has posted an example showing a cool little tool that he's whipped up that looks to bridge the gap between PHP and the Objective-C runtime:

I've had some code hanging around on my laptop for the better part of a year (feels like two, but I don't think I've had my MBP that long), that implements a bridge between PHP and the Objective-C runtime.

Yesterday I debugged the last portion that I regarded as a total showstopper for anyone else that might want to use it, and added a script that pulls in your PHP installation and dependent libraries (such as Fink or Mac Ports libraries) and generates a "Bundle" and optionally a DMG containing the Bundle.

He had a fellow developer try it out on Leopard too (things broke, but most are fixed) who also created a simple ping example to show off this project in its (very early) alpha stages. He mentions in the post how to get to the code, but if you can't locate it, just wait a bit - he'll have it posted up soon enough.

Also check out Sean Coates' and Joseph Crawford's comments on the project too.

tagged: objectivec bridge project ping example leopard objectivec bridge project ping example leopard

Link:

Wez Furlong's Blog:
PHP Objective-C Bridge
Nov 05, 2007 @ 18:04:00

Wez Furlong has posted an example showing a cool little tool that he's whipped up that looks to bridge the gap between PHP and the Objective-C runtime:

I've had some code hanging around on my laptop for the better part of a year (feels like two, but I don't think I've had my MBP that long), that implements a bridge between PHP and the Objective-C runtime.

Yesterday I debugged the last portion that I regarded as a total showstopper for anyone else that might want to use it, and added a script that pulls in your PHP installation and dependent libraries (such as Fink or Mac Ports libraries) and generates a "Bundle" and optionally a DMG containing the Bundle.

He had a fellow developer try it out on Leopard too (things broke, but most are fixed) who also created a simple ping example to show off this project in its (very early) alpha stages. He mentions in the post how to get to the code, but if you can't locate it, just wait a bit - he'll have it posted up soon enough.

Also check out Sean Coates' and Joseph Crawford's comments on the project too.

tagged: objectivec bridge project ping example leopard objectivec bridge project ping example leopard

Link:

Tobias Ebnother's Blog:
Leopard native apache with custom (64bit) PHP
Nov 02, 2007 @ 12:58:00

Christian Stocker points out a blog post from Tobias Ebnother showing how to set up a native apache instance on Leopard (OS X) with a 64 bit PHP included.

With massive! help from Marc Ammann I was able to build a PHP Binary that loads with the Leopard shipped Apache.

His method replaces the standard iconv file with a custom built one (based on this source) prior to compiling. Then, in his configure, he sets certain flags, specifically the "arch x86_64" one, to get it to recognize the new setup.

tagged: leopard osx install 64bit apache instance leopard osx install 64bit apache instance

Link:

Tobias Ebnother's Blog:
Leopard native apache with custom (64bit) PHP
Nov 02, 2007 @ 12:58:00

Christian Stocker points out a blog post from Tobias Ebnother showing how to set up a native apache instance on Leopard (OS X) with a 64 bit PHP included.

With massive! help from Marc Ammann I was able to build a PHP Binary that loads with the Leopard shipped Apache.

His method replaces the standard iconv file with a custom built one (based on this source) prior to compiling. Then, in his configure, he sets certain flags, specifically the "arch x86_64" one, to get it to recognize the new setup.

tagged: leopard osx install 64bit apache instance leopard osx install 64bit apache instance

Link:


Trending Topics: