Created
November 21, 2011 17:30
-
-
Save mattxyzeth/1383317 to your computer and use it in GitHub Desktop.
Apache 2 php 5 configuration for localhost on os x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.