Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: NetRap (---.static.upcbusiness.at)
Date: February 08, 2017 01:35PM

Hello,

I have a problem with my Wampserver, to bring it running with https.
I make my own instruction, to make no errors, but is seems, that some errors are there :-/
Can you please take a look on it?

First download an install
Wamp64bit in folder C:\Wamp
OpenSSL light latest version in C:\OpenSSL
(Becuase the included OpenSSL Version is not working)

Create a folder named "one-two.at" in C:\Wamp\www

Create a file "index.php" in following folder: "C:\Wamp\www\one-two.at"

Fill the file "C:\Wamp\www\one-two.at\index.php" with following code:
<?php
echo 'Hello, this is the www.one-two.at homepage';
?>

Start the Wamp Server and configure a normal http site
(PIC1.jpg)

Restart the DNS

goto [www.one-two.at]

Normal access to homepage is given.

Now create a Certificate and key file.
cd \openssl\bin
openssl genrsa -aes256 -out private.key 2048
Enter as passphrase: 1234
Now remove the passphrase from key:
openssl rsa -in private.key -out private.key
Enter as passphrase: 1234
Keyfile ready created.

Now create the certificate:
openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500 -config C:\wamp\bin\apache\apache2.4.23\conf\openssl.cnf
Enter the informations.
OK. We have the certificate and keyfile.
(PIC2.jpg)

Create folders "key" and "cert" at: "C:\wamp\bin\apache\apache2.4.23\conf"
Copy "certificate.crt" to "C:\wamp\bin\apache\apache2.4.23\conf\cert"
Copy "private.key" to "C:\wamp\bin\apache\apache2.4.23\conf\key"

Uncomment following statements in the file "C:\wamp\bin\apache\apache2.4.23\conf\httpd.conf":
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

Uncomment following statements in the file "C:\wamp\bin\php\php5.6.25\php.ini":
extension=php_openssl.dll

Open following file : "C:\wamp\bin\apache\apache2.4.23\conf\extra\httpd-ssl.conf"

Search for following string : "<VirtualHost _default_:443>"
Change the following settings to there given values:
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "C:/Wamp/www"
ServerName www.one-two.at:443
ServerAdmin info@one-two.at
ErrorLog "C:/wamp/bin/apache/apache2.4.23/logs/error.log"
TransferLog "C:/wamp/bin/apache/apache2.4.23/logs/access.log"

Search for following string : "<Directory "c:/Apache24/cgi-bin">"
Change the following settings to there given values:
</FilesMatch>
<Directory "C:/Wamp/www">
SSLOptions +StdEnvVars
</Directory>

Search for following string : "CustomLog "c:/Apache24/logs/ssl_request.log" \"
Change the following settings to there given values:
CustomLog "C:/wamp/bin/apache/apache2.4.23/logs/ssl_request.log" \

Run the error check on the httpd file:
C:\wamp\bin\apache\apache2.4.23\bin\httpd -t

Now getting the given error PIC3.jpg.

If i restart the wampserver, the wampserver will get an orange state.
[www.one-two.at] is not reachable anymore.
Also [localhost] is not reachable

Links to the PICS:
[picload.org]
[picload.org]
[picload.org]
[picload.org]



Edited 1 time(s). Last edit at 02/08/2017 01:37PM by NetRap.

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: RiggsFolly (Moderator)
Date: February 08, 2017 01:47PM

Hi

Which version of openssl did you download and install?

See this post from yesterday [forum.wampserver.com] is it any help

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: NetRap (---.static.upcbusiness.at)
Date: February 08, 2017 01:56PM

I downloaded:
Win32OpenSSL_Light-1_0_2k

I also tried the
Win64OpenSSL_Light-1_0_2k

But both without success.

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: Otomatic (Moderator)
Date: February 08, 2017 03:06PM

Hi,

If you have Wampserver 64 bit, all things : Apache, PHP, MySQL, MariaDB, PHP extensions, Apache modules MUST compiled with 64 bit

If you have Wampserver 32 bit, all things : Apache, PHP, MySQL, MariaDB, PHP extensions, Apache modules MUST compiled with 32 bit

All Apache modules and PHP extensions MUST be TS (Thread Safe).

Mixing stuff in 32 bit and 64 bit can not work.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: NetRap (---.static.upcbusiness.at)
Date: February 08, 2017 03:45PM

It is all 32bit now.
Unistall all. Delte all DLLs.
Then install wampserver 3.0.6. Then OpenSSL 1.0.2k.

Not working :-(

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: NetRap (---.adsl.highway.telekom.at)
Date: February 08, 2017 06:55PM

Got the solution.
Copy the files "libeay32.dll" and "ssleay32.dll" from the folder
"C:\OpenSSL" to "C:\wamp\bin\php\php5.6.25" and overwrite the existing one.

After that, and a restart of the wamp, the site is running.
When this ugly bug will be fixed?

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: RiggsFolly (Moderator)
Date: February 08, 2017 07:14PM

What ugly bug? There is no ugly bug.

Just people who assume that because WAMPServer is installable with 2 clicks (one download and one install) that everything to do with WAMPServer is going to be as simple.

When you install WAMPServer you take on many new Job Titles, each of which is normally performed by one person or a whole department of experts.

System Administrator
Web Site Administrator
Security Administrator
Database Administrator
Webmaster
Apache configuration Expert
MySQL Tuning Expert
Etc , Etc, Etc

None of these roles come out of the box as easily as WAMPServer!

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 02/08/2017 07:15PM by RiggsFolly.

Options: ReplyQuote
Re: Problem with WampServer und Https: "Can't load modules/mod_ssl.so in server"
Posted by: NetRap (---.adsl.highway.telekom.at)
Date: February 08, 2017 07:26PM

I mean with ugly bug, that don't working dll files comes with WAMP Server.
Not more.

Options: ReplyQuote


Sorry, only registered users may post in this forum.