Home Knowledge Base Server Configuration Issues upgrading to PHP5
Issues upgrading to PHP5 Print E-mail
User Rating: / 0
PoorBest 
Written by Clint McIntosh   
Monday, 11 May 2009 11:25

PHP5 is an excellent object-oriented programming environment, much more advanced than PHP4 which ships with OSX Server but there can be some gotchas when upgrading the built-in PHP that comes with OSX Server.

You can upgrade to PHP 5.x using Marc Liyanage's binaries. But you may find that some of the directions don't quite cover it. Many instructions you find on the process say "simply uncheck the php module in the web services of Server Admin." The problem is that Server Admin automatically re-checks the box for you.

You'll have to go in and use brute force in Terminal to disable Apple's built-in PHP module.

MacOSX Server 10.4 and earlier:

 

cd /etc/httpd 
sudo cp httpd.conf httpd.conf.old 
sudo pico httpd.conf

MacOSX Server 10.5:

 

cd /etc/apache2 
sudo cp httpd.conf httpd.conf.old 
sudo pico httpd.conf

Then find the lines that mention php:

something like

"LoadModule php4_module           libexec/httpd/libphp4.so" or

"LoadModule php5_module libexec/apache2/libphp5.so"

Delete these lines and save httpd.conf.  Restart the Web service via Server Admin.

 

 

If you use PHP5, you may have a problem with SquirrelMail.

You can upgrade SM following these instructions.

Last Updated ( Monday, 11 May 2009 11:27 )
 

We Know Macintosh

Apple certified Macintosh experts serving east TN since 1994.

(865) 584-3355

 

We Know IT for Business

We know how to satisfy the IT needs for business

  • OSX / UNIX server administration and setup
  • Email
  • Installation and Configuration
  • Upgrades, Preventative Maintenance
  • Network Design, Router Configuration
  • Secure Multi-location Networking, Virtual Private Networks (VPN)
  • Domain Name and Web Hosting Management
  • Windows Integration, File Sharing, and Platform Migration
  • Backup and Disaster Planning
  • Remote Systems Monitoring and Repair

 

Log in

©1994-2012 The Metamedia Corporation™. All Rights Reserved.
HappyMac™ is a trademark of The Metamedia Corporation. Apple and Macintosh are trademarks of Apple Inc. All other trademarks are trademarks of their respective owners.