Upgrade to PHP 5 on Mac OS X 10.4 Tiger

Before

Backup your current httpd.conf

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

Revert httpd.conf

sudo cp httpd.conf.default httpd.conf

Install Entropy PHP 5 binary package

Go to Entropy Mac OS X PHP and download the PHP archive for Apache 1.3. Uncompress it with the terminal and launch the installer from the Finder.

PHP5 is now installed and running! However, your web applications may not work properly anymore. A few fixes follow.

Activate PHP short tags

This functionnality is used by some PHP frameworks like Code Igniter . It allows you to use this convenient syntax to print a value:

<?= $toto ?>

To activate it, replace in /usr/local/php5/lib/php.ini:

short_open_tag = Off

by

short_open_tag = On

Allow .htaccess files

Replace in /private/etc/httpd/httpd.conf

# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
    AllowOverride None

by

# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
    AllowOverride All
 

Feedback

Installation on Mac 10.4 don't work du to errors
lo
April 29, 2009
#1
lame...all you did was link to a installed, wtf?

June 24, 2009
#2
Useful, thank you
Polsonby
August 6, 2009
#3
thak you
se tunç
December 9, 2009
#4
Excellent! Thanks. I had found the Entropy page, but didn't know there was an installation compatible with Tiger until I read it here.
-ss-
February 20, 2010
#5
I have entropy installed on my tiger. PHP5 working fine, but MySQL not. have any clue? should I install it separately?
doddi
March 26, 2010
#6
one more tip:
back up mysql dbs
lonesomerobot
May 15, 2010
#7