Skip to main content

Posts

Showing posts from February, 2011

Enabling SSL in MAMP

Open /Applications/MAMP/conf/apache/httpd.conf, Add the line LoadModule ssl_module modules/mod_ssl.so          or uncomment this out if already in the conf file Also add lines to listen on 80, if not there already Listen 80   ServerName localhost:80 Open /Applications/MAMP/conf/apache/ssl.conf. Remove all lines as well as . Find the line defining SSLCertificateFile and SSLCertificateKeyFile, set it to SSLCertificateFile /Applications/MAMP/conf/apache/ssl/server.crt SSLCertificateKeyFile /Applications/MAMP/conf/apache/ssl/server.key Create a new folder /Applications/MAMP/conf/apache/ssl. Drop into the terminal and navigate to the new folder cd /Applications/MAMP/conf/apache/ssl Create a private key, giving a password openssl genrsa -des3 -out server.key 1024 Remove the password cp server.key server-pw.key openssl rsa -in server-pw.key -out server.key Create a certificate signing...

Wamp enable mod_rewrite

To get mod rewrite working with Apache under wamp.. Near the following block in httpd.conf # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None to # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All Uncomment the followiung line in httpd.conf LoadModule rewrite_module modules/mod_rewrite.so Restart Apache !!

Wampserver & php

For some stupid reason, Wamp grabs the main installation of PHP outside wamp by default. This makes no sense to me since the sole purpose of using Wamp was to get an all-at-one-shot solution.. Anyways, here is something to get it to use the php included with wamp (!!) Add the following line to the end of the httpd.conf (click on the wamp icon in system tray , choose Apache > httpd.conf) PHPIniDir "D:/wamp/bin/php/php5.3.5"