View Single Post
  #8 (permalink)  
Old Jun 29th, 2007, 20:06
grahame grahame is offline
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP on MacOS Apache server

Hang on, folks ... Apache on OS X *is* built with PHP - it's just that you need to change the config file to enable it. As I recall, the lines you need are even in the configuration file - just commented out by default!

Code: Select all
dolphin:/etc/httpd graham$ diff httpd.conf.default httpd.conf        
240c240
< #LoadModule php4_module        libexec/httpd/libphp4.so
---
> LoadModule php4_module        libexec/httpd/libphp4.so
284c284
< #AddModule mod_php4.c
---
> AddModule mod_php4.c
dolphin:/etc/httpd graham$
Reply With Quote