Installing PHP extensions/modules

timatherton

Registered
I have set our new XServe and have PHP running fine. However, I want to use the PHP calendar module/extension. This is a standard PHP module and can be found in the standard downloads from PHP.net. I tried to take the Linux approach of recompliling PHP with --enable-calendar however, this doesn't work as there is no compiler on the system.

Any ideas on how i can get the calander module to work? The only compiled versions of PHP I can find for the Mac don't include calendar.

I'm Running OS X 10.4.7, PHP 4.4.1, Apache 1.3.33

Cheers

Tim
 
You can install Xcode and the developer tools, which include gcc compilers. The latest version of Xcode can be downloaded at http://developer.apple.com .
PHP has quite a few dependencies which you'd also have to compile and install, though, so I'll rather recommend Marc Liyanage's PHP packages for Mac OS X, which includes Calendar and many other modules:
http://www.entropy.ch/software/macosx/php/
(site seems to be down right now, but I guess it's up again very soon)
 
Thanks for that. I took the plunge and installed PHP 5 and with a bit of tweaking in the php.ini and httpd.conf its all working nicely

I had come across Marc Liyanage's PHP packages before but as I couldn't see Calendar in the list of modules I assumed it wasn't complied with it, but it is!

Cheers
 
Back
Top