Programming Tutorials

Comment on Tutorial - Getting PHP running on Mac OS 10.1 By Lanhel



Comment Added by : Sachin

Comment Added at : 2011-03-26 00:23:05

Comment on Tutorial : Getting PHP running on Mac OS 10.1 By Lanhel
I am using MacOSX 10.5.4 and only enabling the mod_php5 wasn't enough to get the PHP support. I had to add following block before I could use php on machine -

<IfModule mod_php5.c>
# If php is turned on, we respect .php and .phps files.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

# Since most users will want index.php to work we
# also automatically enable index.php
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>


View Tutorial