2013-06-27 3 views
12

Ich habe heute die neueste WAMP (von wampserver.com) auf meinem Windows 7 Computer installiert.Aktivieren von OpenSSL in WAMP

I SSL haben in PHP > PHP Extensions > php_openssl aktiviert

Und Apache > Apache Modules > open_ssl

Aber wenn ich versuche, etwas mit https zugreifen: // I get "Problem Loading Seite". Die apache_error.log sagt

[Thu Jun 27 16:25:08.622056 2013] [ssl:warn] [pid 4812:tid 356] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior 


[Thu Jun 27 16:25:08.973076 2013] [ssl:warn] [pid 4812:tid 356] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior 


[Thu Jun 27 16:25:09.356098 2013] [ssl:warn] [pid 4812:tid 356] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] 


[Thu Jun 27 16:25:09.365099 2013] [mpm_winnt:notice] [pid 4812:tid 356] AH00455: Apache/2.4.4 (Win64) OpenSSL/1.0.1d PHP/5.4.12 configured -- resuming normal operations 

[Thu Jun 27 16:25:09.365099 2013] [mpm_winnt:notice] [pid 4812:tid 356] AH00456: Server built: Feb 22 2013 22:08:37 

[Thu Jun 27 16:25:09.365099 2013] [core:notice] [pid 4812:tid 356] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.4\\bin\\httpd.exe -d C:/wamp/bin/apache/Apache2.4.4' 

[Thu Jun 27 16:25:09.366099 2013] [mpm_winnt:notice] [pid 4812:tid 356] AH00418: Parent: Created child process 3452 

[Thu Jun 27 16:25:09.664116 2013] [ssl:warn] [pid 3452:tid 248] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior 

[Thu Jun 27 16:25:09.954132 2013] [ssl:warn] [pid 3452:tid 248] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.0.1e 11 Feb 2013, version currently loaded is OpenSSL 1.0.1d 5 Feb 2013) - may result in undefined or erroneous behavior 

[Thu Jun 27 16:25:10.327154 2013] [ssl:warn] [pid 3452:tid 248] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] 


[Thu Jun 27 16:25:10.339154 2013] [mpm_winnt:notice] [pid 3452:tid 248] AH00354: Child: Starting 150 worker threads. 

Antwort

23

Wampserver mit Apache 2.4.4 mit falschen openssl-Dateien veröffentlicht. All die Dinge zu tun, sind: Herunterladen und Installieren der 1.0.1e openssl von hier: http://slproweb.com/products/Win32OpenSSL.html

Dann diese Dateien im Installationsverzeichnis finden:

bin \ openssl.cfg

sind \ libeay32.dll

bin \ ssleay32.dll

bin \ openssl.exe

Stoppen Sie den apache-Server. Speichern Sie zuerst eine BACKUP von ihnen. Dann overright diese Dateien in Ihrem Apache-Verzeichnis:

conf \ openssl.cnf-> benennen Sie die cfg hier

ist \ libeay32.dll

ist \ ssleay32.dll

ist \ openssl. exe

Starten Sie den Server neu. Gelöst.

+2

Ich weiß nicht, wie oder warum, aber das hat gerade meinen Server zum Absturz gebracht. – Corne

+0

Ich habe genau das getan und mein Server stürzt auch – Thermech

+0

@George Ds Vorschlag arbeitete für mich. Dies tat dies leider nicht. Mein Server stürzte nicht – kakoma

23

Kommentieren Sie einfach Ihre openssl-Erweiterung in Ihrer php.ini-Datei.

Eg. ; extension = php_openssl.dll

Entfernen Sie das Semikolon, so ist es so.

extension = php_openssl.dll

Das sollte funktionieren; es hat für mich funktioniert.

+0

Danke @ milestewart88. Es behebt dieses Problem. – Riz

37

Der Pfad zu php.ini [falls Sie das für den Composer haben wollen] ist C: \ wamp \ bin \ php \ php5.4.x \ php.ini. Diese Datei ist nicht die gleiche wie die, die Sie haben, wenn Sie das Wamp Tray-Icon navigieren durch

dorthin gehen und das Semikolon entfernen, wie @ milesstewart88 sagt

+0

Danke, es hat funktioniert. –

+4

Wenn Sie mit diesem Problem mit Composer konfrontiert sind, ist dies der richtige Weg. – Isuru

+0

Vielen Dank ... –

1

sehen, wie ich dies habe es geschafft ..

uncomment below line from <WEBroot>/bin/apache/Apache2.x/conf/httpd.conf 

LoadModule ssl_module modules/mod_ssl.so 

      & 

Include conf/extra/httpd-ssl.conf 

Legen Sie Ihre Zertifikate & Schlüssel auf einem separaten Ordner sagen "wwwssl"

AND GOT TO <WEBroot>/bin/apache/Apache2.x/conf/extra/httpd-ssl.conf 

einen virtuellen Host erstellen für die gewünschten Server siehe zB: unter

<VirtualHost _default_:443> 
    DocumentRoot "<WEBroot>/www/" 
    ServerName localhost 
    SSLEngine on 
    SSLCertificateFile "<WEBroot>/wwwssl/webserver.cert" 
    SSLCertificateKeyFile "<WEBroot>/wwwssl/webserver.key" 

    <FilesMatch "\.(cgi|shtml|phtml|php)$"> 
     SSLOptions +StdEnvVars 
    </FilesMatch> 
</VirtualHost>         
3

Auf einem Wampserver mit Apache 2.4.4 und das funktionierte für mich:
Angenommen, Sie bereits ein Verzeichnis mit SSL-Schlüssel und Zertifikat zum Beispiel bei erstellt: c:/wamp/OpenSSL

uncomment in httpd.conf:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so 
LoadModule log_config_module modules/mod_log_config.so 
LoadModule setenvif_module modules/mod_setenvif.so 
LoadModule ssl_module modules/mod_ssl.so 

# Secure (SSL/TLS) connections 
<IfModule ssl_module> 
    Include conf/extra/httpd-ssl.conf 
</IfModule>` 

bearbeitet in httpd-ssl.conf:

SSLSessionCache  "shmcb:c:/wamp/OpenSSL/logs/ssl_scache(512000)" 

<VirtualHost _default_:443> 
    DocumentRoot "c:/wamp/www" 
    ServerName localhost:443 
    ErrorLog "c:/wamp/logs/error.log" 
    TransferLog "c:/wamp/logs/access.log" 
    SSLCertificateFile "c:/wamp/OpenSSL/certs/server.crt" 
    SSLCertificateKeyFile "c:/wamp/OpenSSL/certs/server.key" 
    <Directory "c:/wamp/www"> 
     SSLOptions +StdEnvVars 
    </Directory> 
    CustomLog "c:/wamp/logs/ssl_request.log" \ 
     "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" 
</VirtualHost>` 

Kommentar in php.ini: extension=php_openssl.dll

1

Wie milesstewart88 sagte - uncompent Zeile Erweiterung = php_openssl.dll in php.ini-Datei.

Das tun von Wamp-Menü wird nicht arbeiten - die von wirklichen Problem führen kann.