https://localhost not loading
Posted by: dirtymike (---.midco.net)
Date: June 27, 2013 11:33PM

I have enabled SSL in PHP > PHP Extensions > php_openssl

And Apache > Apache Modules > open_ssl

But when I try to access anything with https:// I get "Problem Loading Page". The apache_error.log says

[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.

Options: ReplyQuote
Re: https://localhost not loading
Posted by: dirtymike (---.midco.net)
Date: July 01, 2013 11:33PM

Anyone?

Options: ReplyQuote
Re: https://localhost not loading
Posted by: simbha (117.204.175.---)
Date: July 02, 2013 09:30AM

I would suggest undo everything & Just follow this simple tutorial to enable https



1)Install the Apache 2.2.11 (include OpenSSL) to work with openssl.
2) Create SSL Certificate and Key
a. Go To C:\OpenSSL-Win32

Copy C:\OpenSSL-Win32\openssl.cnf to C:\wamp\bin\apache\apache2.2.22\conf
Copy C:\OpenSSL-Win32\bin folder, copy all files to C:\wamp\bin\apache\apache2.2.22\bin

b. Open DOS command window by typing ‘cmd’ in your search menu.
c. Type this cd C:\wamp\bin\apache\apache2.2.22\bin
d. Create a server private key with 1024 bits encryption by entering this command:
openssl genrsa -des3 -out server.key 1024

// It’ll ask you a pass phrase (password), just enter any password you like .

e. Remove the pass phrase from the RSA private key (while keeping a backup copy of the original file). Enter this:
copy server.key server.key.org
openssl rsa -in server.key.org -out server.key

// It’ll ask you the pass phrase, just type it.

f. Create a self-signed Certificate (X509 structure) with the RSA key you just created. Enter this:
openssl req -new -x509 -nodes -sha1 -days 365 -key server.key -out server.crt -config C:\wamp\bin\apache\apache2.2.22\conf\openssl.cnf

3. Copy the server.key and server.crt files

a. In the C:\wamp\bin\apache\Apache2.2.22\conf\, create two folders named as ssl.key and ssl.crt
b. Copy the server.key file to ssl.key folder and server.crt file to ssl.crt folder

4. Edit the httpd.conf file, php.ini, and httpd_ssl.conf

a. Open C:\wamp\bin\apache\apache2.2.22\conf\ httpd.conf file
b. Remove the comment ‘#’ at the line which says: LoadModule ssl_module modules/mod_ssl.so
c. Remove the comment ‘#’ at the line which says: Include conf/extra/httpd-ssl.conf
d. Open this file-> C:\wamp\bin\php\php5.3.13\php.ini
e. Remove the comment ‘;’ at the line which says: extension=php_openssl.dll
f. Open this file -> C:\wamp\bin\apache\Apache2.2.22\conf\extra\httpd_ssl.conf
g. Find the line which says: <VirtualHost _default_:443>.
h. Right after it, change the line which says:

Change the line “DocumentRoot …” to DocumentRoot “C:/wamp/www/”
Change the line “ServerName…” to ServerName localhost:443
Change the line “ErrorLog….” to Errorlog “C:/wamp/bin/apache/Apache2.2.22/logs/sslerror.log”
Change the line “TransferLog ….” to TransferLog “C:/wamp/bin/apache/Apache2.2.22 /logs/sslaccess.log”
Change the line “SSLCertificateFile ….” to SSLCertificateFile “C:/wamp/bin/apache/Apache2.2.22 /conf/ssl.crt/server.crt”
Change the line “SSLCertificateKeyFile ….” to SSLCertificateKeyFile “C:/wamp/bin/apache/Apache2.2.22/conf/ssl.key/server.key”
Add the following lines inside those <Directory … >…</Directory> tags:
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Change the line “CustomLog…” to CustomLog “C:/wamp/bin/apache/Apache2.2.22/logs/ssl_request.log”

5. Make sure it works!
a. In the previous DOS Command windows, enter httpd -t . If it displays Sysntax is OK, then go to next step. If not, then correct the wrong syntax and redo step 3.
b. Restart the Apache server. If restart is successful, then open the browser and enter [localhost]
How it goes? Works, eh? Congratz!
Aaand lastly, to redirect non-https entered link to https, do this.
1. Open file C:/wamp/bin/apache/Apache2.2.22\conf\httpd.conf
2. Add this after the last line
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) []%{HTTP_HOST}%{REQUEST_URI}

source: [www.indiesphp.com]

[algby.tk]

Options: ReplyQuote


Sorry, only registered users may post in this forum.