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
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.
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
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
"Uncompress it with the Terminal"?? Why? How??!
I don't want to use any stupid command-line Terminal -- I want to download a simple PHP installer, double-click on it, and have it be installed, just like any other file or application on a modern computer!
Why is this such an impossible thing to expect?
Ian Shields
December 5, 2010
#8
Ian you deadshit, if you can't use basic terminal commands, you shouldn't be using PHP at all.
Anon
December 7, 2010
#9
You don't need to use the terminal to unzip the package. just double click on the .tar file and it will uncompress just fine.
on this page I found an older PHP package compatible with OS 10.4:
http://www.entropy.ch/software/macosx/php/
PHP 5.2.4 for Apache 1.3
I followed the instructions on that page, and it worked prefectly.
seb
January 5, 2011
#10
for some reason it says installed and i can find all the php5 files but when i go to terminal and do php -v it gives me version 4.49.???????????????????????????????
avcomputer
July 15, 2011
#11