Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/78364-ssl-connection-not-working/
Share on other sites

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.

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.