davidp Posted November 22, 2007 Share Posted November 22, 2007 I am building a web site that requires users to log in, and I would like to use SSL to that it is secure (of course...it makes sense that one would want to do that). Well, my test server is my own computer running WAMP (with Apache 2.2.6 and PHP 5.2.5). My "production server" (which is actually a server on my university campus) is running Apache 2.0 and PHP 4.3.9. Consequently I am coding all my PHP code to be compliant with PHP 4 since my production server is running PHP 4. Anyways, my problem is that for some reason on my computer (the test server) I cannot create an SSL connection. When I run the code on the production server, however, the secure connection is made successfully with no problems at all. So when I try to create an SSL connection to my test server, I get the following error from my web browser: Unable to connect Firefox can't establish a connection to the server at localhost. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. I am confused as to why the SSL connection isn't being created properly when I have Apache installed with OpenSSL properly installed and enabled. Any ideas? If you need any more info I can provide it. Quote Link to comment https://forums.phpfreaks.com/topic/78364-ssl-connection-not-working/ Share on other sites More sharing options...
apacheguy Posted November 23, 2007 Share Posted November 23, 2007 To properly answer your question, you may want to post the contents of the apache error log when you receive this message. Also, since this error is occurring on apache 2.2.6, please be aware that a version with mod_ssl pre-installed and properly configured is available for download. Just look for the win32 binaries on the download page. If this is the version you installed on your machine, then I'm not sure what to tell you until I see your error log. Quote Link to comment https://forums.phpfreaks.com/topic/78364-ssl-connection-not-working/#findComment-397535 Share on other sites More sharing options...
DK_Sun Posted December 9, 2007 Share Posted December 9, 2007 Have you added the Listen 443 command and also setup your SSL certificates? Because without the SSL certificates setup you won't get anywhere dispite Apache being installed properly and OpenSSL being installed properly too. Quote Link to comment https://forums.phpfreaks.com/topic/78364-ssl-connection-not-working/#findComment-410216 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.