Skip to content

Instantly share code, notes, and snippets.

@mattxyzeth
Created November 21, 2011 17:30
Show Gist options
  • Select an option

  • Save mattxyzeth/1383317 to your computer and use it in GitHub Desktop.

Select an option

Save mattxyzeth/1383317 to your computer and use it in GitHub Desktop.
Apache 2 php 5 configuration for localhost on os x
<IfModule php5_module>
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
</IfModule>
@mattxyzeth
Copy link
Author

I've added this because I found this was the only configuration that actually worked for me. Particularly the SetHandler part and setting index.php first for the DirectroyIndex. Without these It just didn't work propery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment