SSL working on wamp5!
Posted by: xarp (---.vscht.cz)
Date: May 07, 2007 03:59AM

Hi everybody,
I needed to use SSL on my apache and wasn't sure if it's possible on wamp5 version 1.7. I looked around this forum and didn't find the answers. So I looked around the net and here are some useful links:
[www.neilstuff.com]
and in the first paragraph on this site is the link for users who has apache 2.2.x - what was my case.

So how I did it. I simply followed the tutorial, when I had to install new apache I did it (I installed version: apache_2.2.4-win32-x86-openssl-0.9.8d.msi) and I installed it to another folder. Then I copied mod_ssl.so file to the wamp apache folder and uninstalled the new apache.
In that time I had wamp with the file for ssl. In httpd.conf I changed changed few things according to the tutorial and then also httpd-ssl.conf.
Finally I had to start and stop apache through command line, but it's maybe not necesary.

It wasn`t big deal. So if you wanna just try it.

If you have some questions, write here..

Bye

xarp

Options: ReplyQuote
Re: SSL working on wamp5!
Posted by: dbo (---.cns.ohiou.edu)
Date: May 15, 2007 08:29PM

Xarp,

Thanks for your post. It has helped me get started in the right direction.

I tried taking your approach by copying the mod_ssl.so file to WAMP's Apache modules location. Upon uncommenting the LoadModule for mod_ssl WAMP will not start. Were there any other steps you took for this to work?

Can you please provide the chunk of code from httpd.conf and httpd-ssl.conf that you used as well?

Greatly appreciate any help I can get. I've used Apache, MySQL and PHP in the past but this is my first go around with WAMP...

Look forward to a response.

-Derek

Options: ReplyQuote
Re: SSL working on wamp5!
Posted by: dbo (---.cns.ohiou.edu)
Date: May 15, 2007 09:06PM

Further investigation reveals the following error:

Syntax error on line 114 of C:/wamp/Apache2/conf/httpd.conf: Cannot load C:/wamp/Apache2/modules/mod_ssl.so into server: The specified module could not be found.

Options: ReplyQuote
Re: SSL working on wamp5!
Posted by: CyberSpatium (71.237.217.---)
Date: May 15, 2007 09:12PM

wamp is not compiled with ssl support, so there is not mod_ssl module in the modules director.


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

I have put one of my one word domains up for action at ebay - Moistest.com
Click here to see the auction

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Options: ReplyQuote
Re: SSL working on wamp5!
Posted by: dbo (---.cns.ohiou.edu)
Date: May 15, 2007 09:20PM

So what do I need to do to compile it with ssl support. Xarp said he was able to do it...

Options: ReplyQuote
Re: SSL working on wamp5!
Posted by: dbo (---.cns.ohiou.edu)
Date: May 15, 2007 09:28PM

If the answer is that I cannot, please let me know so that I can install them individually and move on.

Options: ReplyQuote
Re: SSL working on wamp5!
Posted by: xarp (---.vscht.cz)
Date: May 27, 2007 11:51AM

Hi dbo,
sorry for not being here for long time. Did you suceeded or not yet? Here are parts of httpd.conf were "ssl" appears:

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule php5_module "c:/web/wamp/php/php5apache2_2.dll"




# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>



and in httpd-ssl.conf there are these lines, where are links to my certifikates:
# Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate. If
# the certificate is encrypted, then you will be prompted for a
# pass phrase. Note that a kill -HUP will prompt again. Keep
# in mind that if you have both an RSA and a DSA certificate you
# can configure both in parallel (to also allow the use of DSA
# ciphers, etc.)
SSLCertificateFile c:/web/wamp/Apache2/conf/ssl/oc.cert
#SSLCertificateFile C:/Program Files/Apache Software Foundation/Apache2.2/conf/server-dsa.crt

# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
SSLCertificateKeyFile c:/web/wamp/Apache2/conf/ssl/oc.key


It`s strange you can't load the module. I have one idea, just check that when you edit your php.ini, you do it through wamp - configuration files. Because once I edited something in php.ini, or httpd.conf files normally and the changes didn't work. Then I tried it through opened wamp, configuration files, php.ini and it works.

And do you use also the wamp version 1.7.0?

Tell me how it's going.

Bye

xarp

Options: ReplyQuote


Sorry, only registered users may post in this forum.