SSL on WAMPServer - Additional Tips
Posted by: WarriorGov9791 (
Date: November 04, 2017 01:21AM

Thank you to RiggsFolly for the tutorial!

My setup:

WAMPServer 3.1.0 (64-bit on a separate partition - g: in my custom installation)
Apache 2.4.29
PHP 7.1.11
MySQL 5.7.20
MariaDB 10.2.10

All of my development sites are running with MariaDB. There are no databases on MySQL. It's just there for fallback, if needed.

In addition to everything in the tutorial, I found out that the socache_shmcb_module also needs to be enabled. To do that, simply left-click the WAMPServer icon in the system notification area, go to Apache | Apache modules | click the 'down arrow' until you see the socache_shmcb_module and left-click the entry. Wait for WAMPServer to process the cmd and automatically restart Apache. If your WAMPServer system tray icon is green and the module has the green checkmark, you are good to go.

I also found a way to run additional sites on SSL. After creating VirtualHosts and the SSL keys and certificates for each site, I added the following code for each site to the end of the httpd-ssl.conf file:

<VirtualHost _default_:443>
	DocumentRoot "g:/wamp64/www/mysitefoldername"
	ErrorLog "g:/wamp64/logs/ssl_error.log"
	SSLEngine on
	SSLCertificateFile "g:/wamp64/bin/apache/apache2.4.29/conf/myssl-crtfolder/mysslcertificatename.crt"
	SSLCertificateKeyFile "g:/wamp64/bin/apache/apache2.4.29/conf/myssl-keyfolder/mysslkeyname.key"
	<FilesMatch "\.(cgi|shtml|phtml|php)$">
		SSLOptions +StdEnvVars
	<Directory "g:/wamp64/www/">
		SSLOptions +StdEnvVars
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	BrowserMatch "MSIE [2-5]" \
			nokeepalive ssl-unclean-shutdown \
			downgrade-1.0 force-response-1.0
	CustomLog "g:/wamp64/logs/ssl_request.log" \
			"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

To run sites with the 'www' prefix in SSL, it was not possible to add ServerAlias to the httpd-ssl.conf file. I created SSL keys and certificates for the sites I wanted to run with the 'www' prefix and added a 'www' version of the above code for each site to the end of the httpd-ssl.conf file.

If something seems to be not working, run the Command Prompt in Administrator mode with the 'httpd -t' command line to check for errors.

Hope this helps anyone wishing to run SSL on their WAMPServer sites. Thank you again to RiggsFolly and the WAMPServer Support Staff for all the help!

Ben D

Windows 10 Pro 64-bit • WAMPServer 3.2.7 64-bit
Aestan Tray Menu • Apache 2.4.52
PHP 5.6.40 (CLI) | 7.0.33 | 7.1.33 | 7.2.34 | 7.3.33 | 7.4.27 | 8.0.15 (active) | 8.1.2 • xDebug 3.1.2
phpMyAdmin 5.1.2 • MariaDB (Default DBMS) 10.5.8 • MySQL 5.7.37 | 8.0.28
AdMiner 4.8.1 • PHPSysInfo 3.4.1 • OpenSSL 1.1.1m
Latest VC++ packages installed and verified. (VC17 2022 14.30.30708)

Edited 6 time(s). Last edit at 11/04/2017 09:51AM by WarriorGov9791.

Options: ReplyQuote

Sorry, only registered users may post in this forum.