Upgrading to PHP 5 from OS X Server 10.4.11

Hi guys,

Our server is currently running OS X Server 10.4.11 which (as far as I know) has PHP 4 installed by default. We also have MySQL and Apache installed (I don't know if these were installed by default), and have a partition of the server running so it can be accessed by a sub-domain of our main domain name.

No-one at our company is trained in Network Administration, and since I am a Web Developer I am desperate to upgrade from PHP 4 to PHP 5 as it is far more secure and so we can take advantage of the newer features.

I have talked to the guys who set our server up and they said it would be a bad idea to rebuild PHP as we have webmail running from this server too.

Is there any way I can upgrade to PHP 5 without disturbing webmail? I'm also pretty sure PHP 5 comes with Leopard, so installing this may be just the trick, but again, I don't want this to affect our mail/webmail.

Can anyone help? I'm sorry if the information is vague/incorrect but I can provide more details to anyone willing to help.

Thanks in advance!

Xserve, Mac OS X (10.4.11)

Posted on May 13, 2009 6:50 AM

Reply
3 replies

May 13, 2009 8:38 AM in response to castblackjacket

Yes, Mac OS X Server 10.4 Tiger includes php, MySQL and the Apache web server. All are (now) old versions.

Options: Acquire and install 10.5 Leopard Server. Or shut down the Mac OS X Server versions of MySQL, Apache and php (and avoid the web sections and related sections of Server Admin when managing the box, et al) and install and use [MAMP|http://mamp.info] in place of the installed versions. Or knuckle down and install Xcode and learn how to build and install php alongside the existing (and explicitly disabled) php4 installation; run some Google searches and take a look around for the details on this process including [Entropy|http://www.entropy.ch/phpbb2/viewtopic.php?p=9499] and [TopicDesk|http://osx.topicdesk.com/content/view/48/41>, and various other threads here in the forums.

Given it appears you're unfamiliar with using phpinfo() to determine the configuration and versions, working to retrofit php5 (through any of the available means) means you're going to be learning rather much about Mac OS X Server and Mac OS X Server system administration, and around building php. And to a lesser extent, learning about IP networking. (As for phpinfo(), you can determine the configuration using a file containing +<?php phpinfo(); ?>+ in your web server root directory, and requesting it from a web browser. This php program is very useful, but don't leave this lying around in your web directories.)

Best (easiest) option if you don't want to provide on-going support for and security of this stuff yourself and deal with the operations of and interactions with the various pieces of Mac OS X Server and its installed php4 bits? Upgrade off of 10.4 Tiger Server to 10.5 Leopard Server.

As for your choice here, you know your own current gear best (and particularly whether it is supported for use with Leopard Server, for instance), and with how you want to spend your time and your budget here. And when you're budgeting this, should you add your own php5 pieces here, you're also accepting the ongoing costs and time for the upkeep and any subsequent upgrades needed for the php5 bits you've loaded.

Jul 5, 2009 10:58 PM in response to castblackjacket

Hi,
I'm also trying to install PHP 5 on Mac OS X Tiger Server 10.4.

Marc Liyanage's Entropy page provides a PHP 5 package for OS X 10.4 but discourages it as outdated and probably insecure. Instead I tried following TopicDesk's instructions for installing PHP 5.2.10 from source almost exactly. When I ran 'make test' as a prior command to 'make install' (make test wasn't mentioned in TopicDesk's instructions), I got the two error messages:

1.) "ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush(). tests/output/ob start_basic_unerasable005.phpt"

2.) "SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. ext/spl/tests/arrayObject exchangeArraybasic3.phpt"

(square brackets removed for the sake of this forum's post syntax)

Any ideas on how I could install a safe version of PHP 5? Or should I go all out and upgrade the server OS to 10.5?

Jul 9, 2009 2:34 AM in response to castblackjacket

As stated earlier, I tried compiling the latest PHP 5.2.x from source using TopicDesk's instructions and failed. Next, I tried Entropy's 5.2.4 package for OS X Server 10.4. After the installer happily installed PHP 5 without any complaints, Server Admin could no longer get web service to start anymore until I removed the symbolic link to Entropy PHP's conf file. Not sure if this was expected behavior of the install.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Upgrading to PHP 5 from OS X Server 10.4.11

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.