How to upgrade MAC Server php versin to the latest

I am running Mac Server on Mountain Lion as a local networked server.


I would like to upgrade the current PHP 5.3.15 to the latest (5.4.16 at present) but I can update our local / personal macs machines but the mac that we have the server on wil not how can i update this version of PHP.


Also should it be time for this type of update to be included with updates...!


MAC Pro OS X 10.8.4 running MAC Server v.2.2.1(169).

Posted on Jun 13, 2013 1:37 AM

Reply
5 replies

Jun 13, 2013 2:54 AM in response to levidyllan

Do not upgrade the version of PHP built in to OS X Server. Other tools and services built into OS X Server use that version of PHP to do parts of their jobs. A later version of PHP may introduce or fix bugs or otherwise break the things these other facilities use, which would stop them from working properly.


Apple updates the version of PHP supplied with OS X Server when it has had a chance to test all the other facilities which depend on it to make sure they still work with the new version. This happens more rarely than every PHP version increment.


If you want your server to run a later version of PHP, I recommend you download and install yourself a separate copy, installed in a different place to where the existing copy is.

Jun 13, 2013 3:02 AM in response to Simon Slavin

Thanks for the reply.


I have installed a newer version via http://php-osx.liip.ch/


I then have perfomred th e following:


sudo mv /usr/bin/php /usr/bin/php.orig
sudo ln
-s /usr/local/php5/bin/php/usr/bin/php


When i get then command line php version it then shows the correct i get the following:


'PHP 5.4.15 (cli) (built: May 20 2013 14:34:36) '


But when i run the php info file i have within the root of my webserver i still get the old version 5.3.15.


So my issue is how can i link the server upto the latest installed version.



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.

How to upgrade MAC Server php versin to the latest

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