Skip to content

Instantly share code, notes, and snippets.

@rudisimo
Created January 2, 2014 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudisimo/8227383 to your computer and use it in GitHub Desktop.
Save rudisimo/8227383 to your computer and use it in GitHub Desktop.
LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
ScriptAlias /php52-cgi /usr/local/opt/php52/bin/php-cgi.dSYM
<Directory "/usr/local/opt/php52/bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Action application/x-httpd-php52 /php52-cgi
ScriptAlias /php53-cgi /usr/local/opt/php53/bin/php-cgi
<Directory "/usr/local/opt/php53/bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Action application/x-httpd-php53 /php53-cgi
ScriptAlias /php54-cgi /usr/local/opt/php54/bin/php-cgi
<Directory "/usr/local/opt/php54/bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Action application/x-httpd-php54 /php54-cgi
ScriptAlias /php55-cgi /usr/local/opt/php55/bin/php-cgi
<Directory "/usr/local/opt/php55/bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Action application/x-httpd-php55 /php55-cgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment