cancel
Showing results for 
Search instead for 
Did you mean: 

Apache2 + ssl

 
Piotr Kirklewski
Super Advisor

Apache2 + ssl

Hi there
I was instaling apache2.
I did this:

wget http://apache.rmplc.co.uk/httpd/httpd-2.2.4.tar.gz
tar xvfz httpd-2.2.4.tar.gz
cd httpd-2.2.4/
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http
make
make install
/usr/local/apache2/bin/apachectl start

Now I need to anable mod_ssl but its not available in: /usr/local/apache2/modules/

ls -la /usr/local/apache2/modules/

root@webserver1:/home/madmin/src/httpd-2.2.4# ls -la /usr/local/apache2/modules/
total 2804
drwxr-xr-x 2 root root 4096 2007-08-10 12:09 .
drwxr-xr-x 15 root root 4096 2007-08-10 12:10 ..
-rw-r--r-- 1 root root 8951 2007-08-10 12:06 httpd.exp
-rwxr-xr-x 1 root root 24897 2007-08-10 12:09 mod_actions.so
-rwxr-xr-x 1 root root 32731 2007-08-10 12:09 mod_alias.so
-rwxr-xr-x 1 root root 23257 2007-08-10 12:09 mod_asis.so
-rwxr-xr-x 1 root root 26632 2007-08-10 12:09 mod_auth_basic.so
-rwxr-xr-x 1 root root 59901 2007-08-10 12:09 mod_auth_digest.so
-rwxr-xr-x 1 root root 23502 2007-08-10 12:09 mod_authn_anon.so
-rwxr-xr-x 1 root root 24973 2007-08-10 12:09 mod_authn_dbd.so
-rwxr-xr-x 1 root root 24413 2007-08-10 12:09 mod_authn_dbm.so
-rwxr-xr-x 1 root root 22005 2007-08-10 12:09 mod_authn_default.so
-rwxr-xr-x 1 root root 23948 2007-08-10 12:09 mod_authn_file.so
-rwxr-xr-x 1 root root 26924 2007-08-10 12:09 mod_authz_dbm.so
-rwxr-xr-x 1 root root 21821 2007-08-10 12:09 mod_authz_default.so
-rwxr-xr-x 1 root root 27531 2007-08-10 12:09 mod_authz_groupfile.so
-rwxr-xr-x 1 root root 26442 2007-08-10 12:09 mod_authz_host.so
-rwxr-xr-x 1 root root 24322 2007-08-10 12:09 mod_authz_owner.so
-rwxr-xr-x 1 root root 22526 2007-08-10 12:09 mod_authz_user.so
-rwxr-xr-x 1 root root 71263 2007-08-10 12:09 mod_autoindex.so
-rwxr-xr-x 1 root root 26645 2007-08-10 12:09 mod_cern_meta.so
-rwxr-xr-x 1 root root 56442 2007-08-10 12:09 mod_cgi.so
-rwxr-xr-x 1 root root 140412 2007-08-10 12:09 mod_dav_fs.so
-rwxr-xr-x 1 root root 268062 2007-08-10 12:09 mod_dav.so
-rwxr-xr-x 1 root root 37916 2007-08-10 12:09 mod_dbd.so
-rwxr-xr-x 1 root root 104771 2007-08-10 12:09 mod_deflate.so
-rwxr-xr-x 1 root root 25102 2007-08-10 12:09 mod_dir.so
-rwxr-xr-x 1 root root 27054 2007-08-10 12:09 mod_dumpio.so
-rwxr-xr-x 1 root root 24171 2007-08-10 12:09 mod_env.so
-rwxr-xr-x 1 root root 30525 2007-08-10 12:09 mod_expires.so
-rwxr-xr-x 1 root root 46878 2007-08-10 12:09 mod_ext_filter.so
-rwxr-xr-x 1 root root 37871 2007-08-10 12:09 mod_filter.so
-rwxr-xr-x 1 root root 39968 2007-08-10 12:09 mod_headers.so
-rwxr-xr-x 1 root root 27986 2007-08-10 12:09 mod_ident.so
-rwxr-xr-x 1 root root 38314 2007-08-10 12:09 mod_imagemap.so
-rwxr-xr-x 1 root root 94059 2007-08-10 12:09 mod_include.so
-rwxr-xr-x 1 root root 40911 2007-08-10 12:09 mod_info.so
-rwxr-xr-x 1 root root 57840 2007-08-10 12:09 mod_log_config.so
-rwxr-xr-x 1 root root 28337 2007-08-10 12:09 mod_log_forensic.so
-rwxr-xr-x 1 root root 24775 2007-08-10 12:09 mod_logio.so
-rwxr-xr-x 1 root root 56295 2007-08-10 12:09 mod_mime_magic.so
-rwxr-xr-x 1 root root 40327 2007-08-10 12:09 mod_mime.so
-rwxr-xr-x 1 root root 76977 2007-08-10 12:09 mod_negotiation.so
-rwxr-xr-x 1 root root 92107 2007-08-10 12:09 mod_proxy_ajp.so
-rwxr-xr-x 1 root root 53721 2007-08-10 12:09 mod_proxy_balancer.so
-rwxr-xr-x 1 root root 30523 2007-08-10 12:09 mod_proxy_connect.so
-rwxr-xr-x 1 root root 70430 2007-08-10 12:09 mod_proxy_ftp.so
-rwxr-xr-x 1 root root 63633 2007-08-10 12:09 mod_proxy_http.so
-rwxr-xr-x 1 root root 147916 2007-08-10 12:09 mod_proxy.so
-rwxr-xr-x 1 root root 119525 2007-08-10 12:09 mod_rewrite.so
-rwxr-xr-x 1 root root 31719 2007-08-10 12:09 mod_setenvif.so
-rwxr-xr-x 1 root root 31085 2007-08-10 12:09 mod_speling.so
-rwxr-xr-x 1 root root 46488 2007-08-10 12:09 mod_status.so
-rwxr-xr-x 1 root root 26670 2007-08-10 12:09 mod_unique_id.so
-rwxr-xr-x 1 root root 26378 2007-08-10 12:09 mod_userdir.so
-rwxr-xr-x 1 root root 31140 2007-08-10 12:09 mod_usertrack.so
-rwxr-xr-x 1 root root 19515 2007-08-10 12:09 mod_version.so
-rwxr-xr-x 1 root root 30195 2007-08-10 12:09 mod_vhost_alias.so

Is there any chance to install/add this module now ?

Cheers
Jesus is the King
9 REPLIES
Luk Vandenbussche
Honored Contributor

Re: Apache2 + ssl

Piotr Kirklewski
Super Advisor

Re: Apache2 + ssl

I dont want to install Apache again or just add the modul using LoadModule mod_ssl.so.

My problem is that I don't have this module in the system.

I've found thet there is a mod_ssl.c file in my sysytem. What can I do? How to install mod_ssl to /usr/local/apache2/modules/ ?

Cheers
Jesus is the King
Luk Vandenbussche
Honored Contributor

Re: Apache2 + ssl

Steven E. Protter
Exalted Contributor

Re: Apache2 + ssl

Shalom,

You can add the module.

First you need to get the thing. The modssl link above is one good place. Make sure you get for apache 2.2. You might find it just a bit easier to reinstall apache from a distribution that includes mod_ssl.

http://httpd.apache.org has good documentation on how to proceed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: Apache2 + ssl

No, you don't want that URL.

mod_ssl has been incorporated into the Apache2 source tree.

As you didn't compile it when you compiled the rest of Apache, you'll need the source tree you compiled against to be still available to manually compile the mod_ssl module.

It's a bit of a pain to do, and is probably easier just to recompile the entire thing again, copying just the binaries and modules over.

Or better yet, use a pre-packaged distribution that has it all there and ready to use.
One long-haired git at your service...
Piotr Kirklewski
Super Advisor

Re: Apache2 + ssl

Apache is already installed.

I did:

./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-ssl

and iI get this:

...
checking for APR-util... yes
configure: error: Cannot use an external APR-util with the bundled APR

What's up ?
Jesus is the King
Piotr Kirklewski
Super Advisor

Re: Apache2 + ssl

Working :)

1) apt-get install openssl libssl-dev

2) ./configure --prefix=/usr/local/apache2 --enable-so --with-included-apr --enable-mods-shared=all --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --enable-ssl
Jesus is the King
Stuart Browne
Honored Contributor

Re: Apache2 + ssl

Just wondeirng, why didn't you just 'apt-get install apache2'?
One long-haired git at your service...
Piotr Kirklewski
Super Advisor

Re: Apache2 + ssl

Beacause in Ubuntu 6.6 it installs apache 2.0 which does not have proxy_balancer module in it :(

I was trying several tricks but nothing wored.

Jesus is the King