Skip to content

Instantly share code, notes, and snippets.

@ziz
Created June 14, 2012 17:14
Show Gist options
  • Save ziz/2931575 to your computer and use it in GitHub Desktop.
Save ziz/2931575 to your computer and use it in GitHub Desktop.
Enabling PHP and SSL on OS X Lion
--- default-httpd.conf 2012-06-14 11:07:02.000000000 -0600
+++ /etc/apache2/httpd.conf 2012-03-21 10:57:18.000000000 -0600
@@ -92,7 +92,7 @@
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
LoadModule proxy_scgi_module libexec/apache2/mod_proxy_scgi.so
LoadModule proxy_balancer_module libexec/apache2/mod_proxy_balancer.so
-#LoadModule ssl_module libexec/apache2/mod_ssl.so
+LoadModule ssl_module libexec/apache2/mod_ssl.so
LoadModule mime_module libexec/apache2/mod_mime.so
LoadModule dav_module libexec/apache2/mod_dav.so
LoadModule autoindex_module libexec/apache2/mod_autoindex.so
@@ -108,7 +108,7 @@
LoadModule speling_module libexec/apache2/mod_speling.so
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
-#LoadModule php5_module libexec/apache2/libphp5.so
+LoadModule php5_module libexec/apache2/libphp5.so
#Apple specific modules
LoadModule apple_userdir_module libexec/apache2/mod_userdir_apple.so
@@ -606,7 +606,6 @@
# Language settings
Include /private/etc/apache2/extra/httpd-languages.conf
-<IfDefine WEBSHARING_ON>
# Multi -language error messages
#Include /private/etc/apache2/extra/httpd-multilang-errordoc.conf
@@ -628,16 +627,16 @@
# Distributed authoring and versioning (WebDAV)
#Include /private/etc/apache2/extra/httpd-dav.conf
-</IfDefine>
# Secure (SSL/TLS) connections
<IfDefine !MACOSXSERVER>
#Include /private/etc/apache2/extra/httpd-ssl.conf
</IfDefine>
-<IfDefine MACOSXSERVER>
+#<IfDefine MACOSXSERVER>
<IfModule mod_ssl.c>
+ Listen 443
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
- SSLPassPhraseDialog exec:/etc/apache2/getsslpassphrase
+ #SSLPassPhraseDialog exec:/etc/apache2/getsslpassphrase
SSLSessionCache shmcb:/var/run/ssl_scache(512000)
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
@@ -646,7 +645,7 @@
AddType application/x-x509-ca-cert crt
AddType application/x-pkcs7-crl crl
</IfModule>
-</IfDefine>
+#</IfDefine>
<IfModule mod_jk.c>
JKWorkersFile /etc/apache2/workers.properties
@@ -673,4 +672,5 @@
Include /etc/apache2/sites/*_.conf
Include /etc/apache2/sites/*__shadow.conf
</IfDefine>
-</IfDefine>
\ No newline at end of file
+</IfDefine>
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment