You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Audrey Lee <au...@gmail.com> on 2010/06/23 08:55:15 UTC

[users@httpd] SSL and apache 2.2.15 installed from source. How to?

I want to serve files via https on my apache server.

I did this already using a lighttpd web server and it was easy.

I just had to follow this document:

http://redmine.lighttpd.net/wiki/lighttpd/Docs:SSL

Now I am ambitious.

I want to do the same thing but on Apache.

I'm using Apache 2.2.15

I created a very simple httpd.conf file which basically has this in it:

ServerRoot "/pt/apache"
Listen localhost:8000

<Directory "/pt/apache/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

I started apache with this command line:

apachectl graceful

And I found that apache works fine.

Next  I looked around in conf/

I found this interesting file:

conf/extra/httpd-ssl.conf

I made these changes to it:

Listen localhost:8443


<VirtualHost _default_:8443>

#   General setup for the virtual host
DocumentRoot "/pt/apache/htdocs"
ServerName localhost:8443
ServerAdmin you@localhost
SSLCertificateFile "/pt/apache/conf/server.pem"


My pem file looks like this:

-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQCr6bXTBZZeGbo05I8VWCXFl92kbc7E6TpFTzxhWgMeOyr9BkDw
snip
U0piIs+1OcgZP5PBOXZilLAFeBz71xvRyLIeAI20cgoY
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIDdTCCAt6gAwIBAgIJAP1Hv+6EsYubMA0GCSqGSIb3DQEBBAUAMIGEMQswCQYD
snip
wPtx995cyTbVeQBwfltVrlAXv+5ND3F0Qw==
-----END CERTIFICATE-----


Then...

I added this line to conf/httpd.conf:

Include conf/extra/httpd-ssl.conf

Which, I assume, "pulls" httpd-ssl.conf into httpd.conf

Next, I tried this:

$ apachectl graceful

I saw:

Syntax error on line 62 of /pt/apache/conf/extra/httpd-ssl.conf:
Invalid command 'SSLSessionCache', perhaps misspelled or defined by a
module not included in the server configuration
httpd not running, trying to start

So it looks like I need to: "define a module" in the server configuration.

I'm not sure how to do that.

I see this syntax in my httpd.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

What's it do?
Is it supposed to "define a module"


I looked at this URL suggested by a friend:

http://www.tc.umn.edu/~brams006/selfsign_ubuntu.html

The above URL suggests I do this:

run the /usr/sbin/a2enmod script

But, my version of apache does not have an a2enmod script (or an sbin
directory).

BTW, here is my version:
2.2.15

And here is where I got it:
  - http://httpd.apache.org/download.cgi#apache22
  - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz

I installed it with these 3 commands:

./configure --prefix=/pt/apache
make
make install

Here is what my server root looks like:

  /pt/apache:

  total used in directory 0 available 39446244
  drwxr-xr-x   14 maco  staff   476 Jun 19 12:41 .
  drwxr-xr-x   90 maco  staff  3060 Jun 19 17:15 ..
  drwxr-xr-x   17 maco  staff   578 Jun 19 13:01 bin
  drwxr-xr-x   11 maco  staff   374 Jun 19 12:41 build
  drwxr-xr-x    4 maco  staff   136 Jun 19 12:41 cgi-bin
  drwxr-xr-x    8 maco  staff   272 Jun 21 22:24 conf
  drwxr-xr-x   22 maco  staff   748 Jun 19 12:41 error
  drwxr-xr-x    3 maco  staff   102 Mar  1 21:33 htdocs
  drwxr-xr-x  160 maco  staff  5440 Jun 19 12:41 icons
  drwxr-xr-x   48 maco  staff  1632 Jun 19 12:41 include
  drwxr-xr-x    4 maco  staff   136 Jun 21 21:21 logs
  drwxr-xr-x    4 maco  staff   136 Jun 19 12:41 man
  drwxr-xr-x  180 maco  staff  6120 Mar  1 21:34 manual
  drwxr-xr-x    3 maco  staff   102 Jun 19 12:41 modules

If you have a minute or 3,
Please send me clues or a URL to a how-to for Apache 2.2.15 and SSL.

In the mean time I'll see if I can get SSL to work on nginx.

Thanks!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by HERALD <he...@avenues.info>.
Do you have the ssl module in your module folder?? . the file name would be
mod_ssl.so under /Apache/modules/ path

Best Regards
Herald Jose


-----Original Message-----
From: Audrey Lee [mailto:audrey.lee.is.me@gmail.com] 
Sent: Wednesday, June 23, 2010 12:25 PM
To: users@httpd.apache.org
Subject: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

I want to serve files via https on my apache server.

I did this already using a lighttpd web server and it was easy.

I just had to follow this document:

http://redmine.lighttpd.net/wiki/lighttpd/Docs:SSL

Now I am ambitious.

I want to do the same thing but on Apache.

I'm using Apache 2.2.15

I created a very simple httpd.conf file which basically has this in it:

ServerRoot "/pt/apache"
Listen localhost:8000

<Directory "/pt/apache/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

I started apache with this command line:

apachectl graceful

And I found that apache works fine.

Next  I looked around in conf/

I found this interesting file:

conf/extra/httpd-ssl.conf

I made these changes to it:

Listen localhost:8443


<VirtualHost _default_:8443>

#   General setup for the virtual host
DocumentRoot "/pt/apache/htdocs"
ServerName localhost:8443
ServerAdmin you@localhost
SSLCertificateFile "/pt/apache/conf/server.pem"


My pem file looks like this:

-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQCr6bXTBZZeGbo05I8VWCXFl92kbc7E6TpFTzxhWgMeOyr9BkDw
snip
U0piIs+1OcgZP5PBOXZilLAFeBz71xvRyLIeAI20cgoY
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIDdTCCAt6gAwIBAgIJAP1Hv+6EsYubMA0GCSqGSIb3DQEBBAUAMIGEMQswCQYD
snip
wPtx995cyTbVeQBwfltVrlAXv+5ND3F0Qw==
-----END CERTIFICATE-----


Then...

I added this line to conf/httpd.conf:

Include conf/extra/httpd-ssl.conf

Which, I assume, "pulls" httpd-ssl.conf into httpd.conf

Next, I tried this:

$ apachectl graceful

I saw:

Syntax error on line 62 of /pt/apache/conf/extra/httpd-ssl.conf:
Invalid command 'SSLSessionCache', perhaps misspelled or defined by a
module not included in the server configuration
httpd not running, trying to start

So it looks like I need to: "define a module" in the server configuration.

I'm not sure how to do that.

I see this syntax in my httpd.conf

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

What's it do?
Is it supposed to "define a module"


I looked at this URL suggested by a friend:

http://www.tc.umn.edu/~brams006/selfsign_ubuntu.html

The above URL suggests I do this:

run the /usr/sbin/a2enmod script

But, my version of apache does not have an a2enmod script (or an sbin
directory).

BTW, here is my version:
2.2.15

And here is where I got it:
  - http://httpd.apache.org/download.cgi#apache22
  - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz

I installed it with these 3 commands:

./configure --prefix=/pt/apache
make
make install

Here is what my server root looks like:

  /pt/apache:

  total used in directory 0 available 39446244
  drwxr-xr-x   14 maco  staff   476 Jun 19 12:41 .
  drwxr-xr-x   90 maco  staff  3060 Jun 19 17:15 ..
  drwxr-xr-x   17 maco  staff   578 Jun 19 13:01 bin
  drwxr-xr-x   11 maco  staff   374 Jun 19 12:41 build
  drwxr-xr-x    4 maco  staff   136 Jun 19 12:41 cgi-bin
  drwxr-xr-x    8 maco  staff   272 Jun 21 22:24 conf
  drwxr-xr-x   22 maco  staff   748 Jun 19 12:41 error
  drwxr-xr-x    3 maco  staff   102 Mar  1 21:33 htdocs
  drwxr-xr-x  160 maco  staff  5440 Jun 19 12:41 icons
  drwxr-xr-x   48 maco  staff  1632 Jun 19 12:41 include
  drwxr-xr-x    4 maco  staff   136 Jun 21 21:21 logs
  drwxr-xr-x    4 maco  staff   136 Jun 19 12:41 man
  drwxr-xr-x  180 maco  staff  6120 Mar  1 21:34 manual
  drwxr-xr-x    3 maco  staff   102 Jun 19 12:41 modules

If you have a minute or 3,
Please send me clues or a URL to a how-to for Apache 2.2.15 and SSL.

In the mean time I'll see if I can get SSL to work on nginx.

Thanks!

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by David Garvey <da...@gmail.com>.
Are you using openssl libs? Do you want a dso?
http://www.issociate.de/board/post/44936/Compiling_mod_ssl_as_a_DSO.html

On Thu, Jun 24, 2010 at 2:44 PM, Audrey Lee <au...@gmail.com>wrote:

> A clue:
>
>
> http://mail-archives.apache.org/mod_mbox/httpd-dev/200901.mbox/%3C495EB674.1050309@kippdata.de%3E
>
> It works for me on Solaris. Those symbols (without the leading
> underscore) are referenced indeed by ab.c, but they should be in your
> libcrypto (BIO*) resp. libssl (SSL*).
>
> Are you sure, that the libraries libcrypto and libssl can be found? Are
> they in
>
> /Users/minfrin/src/apache/sandbox/crypto/nss-3.12/mozilla/dist/Darwin9.4.0_OPT.OBJ/lib?
>
> Which version of OpenSSL do you use (I use 0.9.8i)? Can you see the
> symbols in the libs (check with "nm")?
>
>
> Me, I tried this:
>
>
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$ find /usr/lib
> /opt/local/lib -name '*crypto*' -print | xargs grep _BIO_set_callback
> Binary file /opt/local/lib/libcrypto.0.9.8.dylib matches
> Binary file /opt/local/lib/libcrypto.a matches
> Binary file /opt/local/lib/libcrypto.dylib matches
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$ find /usr/lib
> /opt/local/lib -name '*ssl*' -print | xargs grep
> _SSL_CTX_set_info_callback
> Binary file /opt/local/lib/libssl.0.9.8.dylib matches
> Binary file /opt/local/lib/libssl.a matches
> Binary file /opt/local/lib/libssl.dylib matches
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:38 /pt/tmp/httpd-2.2.15 maco$
>
>
>
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:38 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:39 /pt/tmp/httpd-2.2.15 maco$ nm
> /opt/local/lib/libssl.dylib |grep _SSL_CTX_set_info_callback
> 00028660 T _SSL_CTX_set_info_callback
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$ nm
> /opt/local/lib/libcrypto.dylib | grep _BIO_set_callback
> 00066880 T _BIO_set_callback
> 00066890 T _BIO_set_callback_arg
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
>
>
> Again, I'm no c-programmer so I dont know what nm is telling me here.
>
> I'm lost...
>
>
> On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
> > Google returns a lot of hits on:
> >
> > Undefined symbols _BIO_set_callback_arg
> >
> >
> >
> > On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
> >> Well,
> >>
> >>
> >> I did this:
> >>   - Carefully read  /pt/tmp/httpd-2.2.15/INSTALL
> >>   - ./configure --prefix=/pt/apache --enable-ssl --with-port=8123
> >> --with-sslport=8443
> >>   - ./make
> >>
> >> I bumped into this error from make:
> >>
> >> /usr/share/apr-1/build-1/libtool --silent --mode=link gcc
> >> -L/usr/lib -L/opt/local/lib   -o ab  ab.lo
> >> /pt/tmp/httpd-2.2.15/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib
> >> -laprutil-1 -lsqlite3 -lexpat -liconv -L/usr/lib -R/usr/lib -lapr-1
> >> -lpthread -lssl -lcrypto -lz
> >> Undefined symbols:
> >>   "_BIO_set_callback_arg", referenced from:
> >>       _start_connect in ab.o
> >>   "_BIO_get_callback_arg", referenced from:
> >>       _ssl_print_cb in ab.o
> >>   "_SSL_CTX_set_info_callback", referenced from:
> >>       _main in ab.o
> >>   "_BIO_set_callback", referenced from:
> >>       _start_connect in ab.o
> >> ld: symbol(s) not found
> >> collect2: ld returned 1 exit status
> >> make[2]: *** [ab] Error 1
> >> make[1]: *** [all-recursive] Error 1
> >> make: *** [all-recursive] Error 1
> >> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> >> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> >> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> >>
> >> I am not a c programmer but my guess is that we have a file named ab.o
> >> and it wants some things and cannot find them.
> >>
> >>
> >> On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
> >>> Herald and Jeff,
> >>>
> >>> Thanks for the responses!
> >>>
> >>> I feel like I'm making progress.
> >>>
> >>> Here is what my modules directory looks like:
> >>>
> >>>   /pt/apache/modules:
> >>>   total used in directory 24 available 35223120
> >>>   drwxr-xr-x   3 maco  staff   102 Jun 19 12:41 .
> >>>   drwxr-xr-x  14 maco  staff   476 Jun 19 12:41 ..
> >>>   -rw-r--r--   1 maco  staff  9083 Jun 19 12:37 httpd.exp
> >>>
> >>> How do I create mod_ssl.so ?
> >>>
> >>> I sense that both of you have given me a good clue.
> >>>
> >>> I'll search the web for more clues.
> >>>
> >>> I know that a .so file is compiled software which suggests to me that
> >>> I might be able to create it along the path I followed to install my
> >>> copy of apache from the source code I obtained here:
> >>>
> >>>   - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz
> >>>
> >>> I unpacked httpd-2.2.15.tar.gz to here:
> >>>
> >>>   - /pt/tmp/httpd-2.2.15/
> >>>
> >>> When I search
> >>>
> >>>   - /pt/tmp/httpd-2.2.15/INSTALL
> >>>
> >>> For the word "module" I see this:
> >>>
> >>> Here is a typical example which configures Apache for the installation
> >>> tree /sw/pkg/apache plus the two additional modules mod_rewrite and
> >>> mod_speling for later loading through the DSO mechanism:
> >>>
> >>>
> >>>      ./configure --prefix=/sw/pkg/apache \
> >>>      --enable-rewrite=shared \
> >>>      --enable-speling=shared
> >>>
> >>> Question 1:
> >>>   - What is the DSO mechanism?
> >>>
> >>> Question 2:
> >>>   - Can I create mod_ssl.so using --enable-ssl=shared  ?
> >>>   - If yes, what is the proper way to create and install mod_ssl.so
> >>> after I have already finished my install from source ?
> >>>
> >>>
> >>> On 6/23/10, Jeff Trawick <tr...@gmail.com> wrote:
> >>>> On Wed, Jun 23, 2010 at 3:04 AM, HERALD <he...@avenues.info>
> >>>> wrote:
> >>>>>
> >>>>> Do you have the ssl module in your module folder?? . the file name
> >>>>> would
> >>>>> be
> >>>>> mod_ssl.so under /Apache/modules/ path
> >>>>
> >>>> For the benefit of the person with the problem, who appears to be new
> >>>> to this: The immediate symptom ("Invalid command 'SSLSessionCache'
> >>>> ...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and of
> >>>> course there must be a mod_ssl.so installed somewhere.)
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> The official User-To-User support forum of the Apache HTTP Server
> >>>> Project.
> >>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >>>> For additional commands, e-mail: users-help@httpd.apache.org
> >>>>
> >>>>
> >>>
> >>
> >
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
David Garvey

Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by Audrey Lee <au...@gmail.com>.
A clue:

http://mail-archives.apache.org/mod_mbox/httpd-dev/200901.mbox/%3C495EB674.1050309@kippdata.de%3E

It works for me on Solaris. Those symbols (without the leading
underscore) are referenced indeed by ab.c, but they should be in your
libcrypto (BIO*) resp. libssl (SSL*).

Are you sure, that the libraries libcrypto and libssl can be found? Are
they in
/Users/minfrin/src/apache/sandbox/crypto/nss-3.12/mozilla/dist/Darwin9.4.0_OPT.OBJ/lib?

Which version of OpenSSL do you use (I use 0.9.8i)? Can you see the
symbols in the libs (check with "nm")?


Me, I tried this:


Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$ find /usr/lib
/opt/local/lib -name '*crypto*' -print | xargs grep _BIO_set_callback
Binary file /opt/local/lib/libcrypto.0.9.8.dylib matches
Binary file /opt/local/lib/libcrypto.a matches
Binary file /opt/local/lib/libcrypto.dylib matches
Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$ find /usr/lib
/opt/local/lib -name '*ssl*' -print | xargs grep
_SSL_CTX_set_info_callback
Binary file /opt/local/lib/libssl.0.9.8.dylib matches
Binary file /opt/local/lib/libssl.a matches
Binary file /opt/local/lib/libssl.dylib matches
Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:38 /pt/tmp/httpd-2.2.15 maco$



Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:38 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:39 /pt/tmp/httpd-2.2.15 maco$ nm
/opt/local/lib/libssl.dylib |grep _SSL_CTX_set_info_callback
00028660 T _SSL_CTX_set_info_callback
Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$ nm
/opt/local/lib/libcrypto.dylib | grep _BIO_set_callback
00066880 T _BIO_set_callback
00066890 T _BIO_set_callback_arg
Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$


Again, I'm no c-programmer so I dont know what nm is telling me here.

I'm lost...


On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
> Google returns a lot of hits on:
>
> Undefined symbols _BIO_set_callback_arg
>
>
>
> On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
>> Well,
>>
>>
>> I did this:
>>   - Carefully read  /pt/tmp/httpd-2.2.15/INSTALL
>>   - ./configure --prefix=/pt/apache --enable-ssl --with-port=8123
>> --with-sslport=8443
>>   - ./make
>>
>> I bumped into this error from make:
>>
>> /usr/share/apr-1/build-1/libtool --silent --mode=link gcc
>> -L/usr/lib -L/opt/local/lib   -o ab  ab.lo
>> /pt/tmp/httpd-2.2.15/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib
>> -laprutil-1 -lsqlite3 -lexpat -liconv -L/usr/lib -R/usr/lib -lapr-1
>> -lpthread -lssl -lcrypto -lz
>> Undefined symbols:
>>   "_BIO_set_callback_arg", referenced from:
>>       _start_connect in ab.o
>>   "_BIO_get_callback_arg", referenced from:
>>       _ssl_print_cb in ab.o
>>   "_SSL_CTX_set_info_callback", referenced from:
>>       _main in ab.o
>>   "_BIO_set_callback", referenced from:
>>       _start_connect in ab.o
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>> make[2]: *** [ab] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive] Error 1
>> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
>> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
>> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
>>
>> I am not a c programmer but my guess is that we have a file named ab.o
>> and it wants some things and cannot find them.
>>
>>
>> On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
>>> Herald and Jeff,
>>>
>>> Thanks for the responses!
>>>
>>> I feel like I'm making progress.
>>>
>>> Here is what my modules directory looks like:
>>>
>>>   /pt/apache/modules:
>>>   total used in directory 24 available 35223120
>>>   drwxr-xr-x   3 maco  staff   102 Jun 19 12:41 .
>>>   drwxr-xr-x  14 maco  staff   476 Jun 19 12:41 ..
>>>   -rw-r--r--   1 maco  staff  9083 Jun 19 12:37 httpd.exp
>>>
>>> How do I create mod_ssl.so ?
>>>
>>> I sense that both of you have given me a good clue.
>>>
>>> I'll search the web for more clues.
>>>
>>> I know that a .so file is compiled software which suggests to me that
>>> I might be able to create it along the path I followed to install my
>>> copy of apache from the source code I obtained here:
>>>
>>>   - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz
>>>
>>> I unpacked httpd-2.2.15.tar.gz to here:
>>>
>>>   - /pt/tmp/httpd-2.2.15/
>>>
>>> When I search
>>>
>>>   - /pt/tmp/httpd-2.2.15/INSTALL
>>>
>>> For the word "module" I see this:
>>>
>>> Here is a typical example which configures Apache for the installation
>>> tree /sw/pkg/apache plus the two additional modules mod_rewrite and
>>> mod_speling for later loading through the DSO mechanism:
>>>
>>>
>>>      ./configure --prefix=/sw/pkg/apache \
>>>      --enable-rewrite=shared \
>>>      --enable-speling=shared
>>>
>>> Question 1:
>>>   - What is the DSO mechanism?
>>>
>>> Question 2:
>>>   - Can I create mod_ssl.so using --enable-ssl=shared  ?
>>>   - If yes, what is the proper way to create and install mod_ssl.so
>>> after I have already finished my install from source ?
>>>
>>>
>>> On 6/23/10, Jeff Trawick <tr...@gmail.com> wrote:
>>>> On Wed, Jun 23, 2010 at 3:04 AM, HERALD <he...@avenues.info>
>>>> wrote:
>>>>>
>>>>> Do you have the ssl module in your module folder?? . the file name
>>>>> would
>>>>> be
>>>>> mod_ssl.so under /Apache/modules/ path
>>>>
>>>> For the benefit of the person with the problem, who appears to be new
>>>> to this: The immediate symptom ("Invalid command 'SSLSessionCache'
>>>> ...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and of
>>>> course there must be a mod_ssl.so installed somewhere.)
>>>>
>>>> ---------------------------------------------------------------------
>>>> The official User-To-User support forum of the Apache HTTP Server
>>>> Project.
>>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>>
>>>
>>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by Audrey Lee <au...@gmail.com>.
Google returns a lot of hits on:

Undefined symbols _BIO_set_callback_arg



On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
> Well,
>
>
> I did this:
>   - Carefully read  /pt/tmp/httpd-2.2.15/INSTALL
>   - ./configure --prefix=/pt/apache --enable-ssl --with-port=8123
> --with-sslport=8443
>   - ./make
>
> I bumped into this error from make:
>
> /usr/share/apr-1/build-1/libtool --silent --mode=link gcc
> -L/usr/lib -L/opt/local/lib   -o ab  ab.lo
> /pt/tmp/httpd-2.2.15/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib
> -laprutil-1 -lsqlite3 -lexpat -liconv -L/usr/lib -R/usr/lib -lapr-1
> -lpthread -lssl -lcrypto -lz
> Undefined symbols:
>   "_BIO_set_callback_arg", referenced from:
>       _start_connect in ab.o
>   "_BIO_get_callback_arg", referenced from:
>       _ssl_print_cb in ab.o
>   "_SSL_CTX_set_info_callback", referenced from:
>       _main in ab.o
>   "_BIO_set_callback", referenced from:
>       _start_connect in ab.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [ab] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
>
> I am not a c programmer but my guess is that we have a file named ab.o
> and it wants some things and cannot find them.
>
>
> On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
>> Herald and Jeff,
>>
>> Thanks for the responses!
>>
>> I feel like I'm making progress.
>>
>> Here is what my modules directory looks like:
>>
>>   /pt/apache/modules:
>>   total used in directory 24 available 35223120
>>   drwxr-xr-x   3 maco  staff   102 Jun 19 12:41 .
>>   drwxr-xr-x  14 maco  staff   476 Jun 19 12:41 ..
>>   -rw-r--r--   1 maco  staff  9083 Jun 19 12:37 httpd.exp
>>
>> How do I create mod_ssl.so ?
>>
>> I sense that both of you have given me a good clue.
>>
>> I'll search the web for more clues.
>>
>> I know that a .so file is compiled software which suggests to me that
>> I might be able to create it along the path I followed to install my
>> copy of apache from the source code I obtained here:
>>
>>   - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz
>>
>> I unpacked httpd-2.2.15.tar.gz to here:
>>
>>   - /pt/tmp/httpd-2.2.15/
>>
>> When I search
>>
>>   - /pt/tmp/httpd-2.2.15/INSTALL
>>
>> For the word "module" I see this:
>>
>> Here is a typical example which configures Apache for the installation
>> tree /sw/pkg/apache plus the two additional modules mod_rewrite and
>> mod_speling for later loading through the DSO mechanism:
>>
>>
>>      ./configure --prefix=/sw/pkg/apache \
>>      --enable-rewrite=shared \
>>      --enable-speling=shared
>>
>> Question 1:
>>   - What is the DSO mechanism?
>>
>> Question 2:
>>   - Can I create mod_ssl.so using --enable-ssl=shared  ?
>>   - If yes, what is the proper way to create and install mod_ssl.so
>> after I have already finished my install from source ?
>>
>>
>> On 6/23/10, Jeff Trawick <tr...@gmail.com> wrote:
>>> On Wed, Jun 23, 2010 at 3:04 AM, HERALD <he...@avenues.info>
>>> wrote:
>>>>
>>>> Do you have the ssl module in your module folder?? . the file name
>>>> would
>>>> be
>>>> mod_ssl.so under /Apache/modules/ path
>>>
>>> For the benefit of the person with the problem, who appears to be new
>>> to this: The immediate symptom ("Invalid command 'SSLSessionCache'
>>> ...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and of
>>> course there must be a mod_ssl.so installed somewhere.)
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by Audrey Lee <au...@gmail.com>.
Well,


I did this:
  - Carefully read  /pt/tmp/httpd-2.2.15/INSTALL
  - ./configure --prefix=/pt/apache --enable-ssl --with-port=8123
--with-sslport=8443
  - ./make

I bumped into this error from make:

/usr/share/apr-1/build-1/libtool --silent --mode=link gcc
-L/usr/lib -L/opt/local/lib   -o ab  ab.lo
/pt/tmp/httpd-2.2.15/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib
-laprutil-1 -lsqlite3 -lexpat -liconv -L/usr/lib -R/usr/lib -lapr-1
-lpthread -lssl -lcrypto -lz
Undefined symbols:
  "_BIO_set_callback_arg", referenced from:
      _start_connect in ab.o
  "_BIO_get_callback_arg", referenced from:
      _ssl_print_cb in ab.o
  "_SSL_CTX_set_info_callback", referenced from:
      _main in ab.o
  "_BIO_set_callback", referenced from:
      _start_connect in ab.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [ab] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$

I am not a c programmer but my guess is that we have a file named ab.o
and it wants some things and cannot find them.


On 6/24/10, Audrey Lee <au...@gmail.com> wrote:
> Herald and Jeff,
>
> Thanks for the responses!
>
> I feel like I'm making progress.
>
> Here is what my modules directory looks like:
>
>   /pt/apache/modules:
>   total used in directory 24 available 35223120
>   drwxr-xr-x   3 maco  staff   102 Jun 19 12:41 .
>   drwxr-xr-x  14 maco  staff   476 Jun 19 12:41 ..
>   -rw-r--r--   1 maco  staff  9083 Jun 19 12:37 httpd.exp
>
> How do I create mod_ssl.so ?
>
> I sense that both of you have given me a good clue.
>
> I'll search the web for more clues.
>
> I know that a .so file is compiled software which suggests to me that
> I might be able to create it along the path I followed to install my
> copy of apache from the source code I obtained here:
>
>   - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz
>
> I unpacked httpd-2.2.15.tar.gz to here:
>
>   - /pt/tmp/httpd-2.2.15/
>
> When I search
>
>   - /pt/tmp/httpd-2.2.15/INSTALL
>
> For the word "module" I see this:
>
> Here is a typical example which configures Apache for the installation
> tree /sw/pkg/apache plus the two additional modules mod_rewrite and
> mod_speling for later loading through the DSO mechanism:
>
>
>      ./configure --prefix=/sw/pkg/apache \
>      --enable-rewrite=shared \
>      --enable-speling=shared
>
> Question 1:
>   - What is the DSO mechanism?
>
> Question 2:
>   - Can I create mod_ssl.so using --enable-ssl=shared  ?
>   - If yes, what is the proper way to create and install mod_ssl.so
> after I have already finished my install from source ?
>
>
> On 6/23/10, Jeff Trawick <tr...@gmail.com> wrote:
>> On Wed, Jun 23, 2010 at 3:04 AM, HERALD <he...@avenues.info> wrote:
>>>
>>> Do you have the ssl module in your module folder?? . the file name would
>>> be
>>> mod_ssl.so under /Apache/modules/ path
>>
>> For the benefit of the person with the problem, who appears to be new
>> to this: The immediate symptom ("Invalid command 'SSLSessionCache'
>> ...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and of
>> course there must be a mod_ssl.so installed somewhere.)
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by Audrey Lee <au...@gmail.com>.
Herald and Jeff,

Thanks for the responses!

I feel like I'm making progress.

Here is what my modules directory looks like:

  /pt/apache/modules:
  total used in directory 24 available 35223120
  drwxr-xr-x   3 maco  staff   102 Jun 19 12:41 .
  drwxr-xr-x  14 maco  staff   476 Jun 19 12:41 ..
  -rw-r--r--   1 maco  staff  9083 Jun 19 12:37 httpd.exp

How do I create mod_ssl.so ?

I sense that both of you have given me a good clue.

I'll search the web for more clues.

I know that a .so file is compiled software which suggests to me that
I might be able to create it along the path I followed to install my
copy of apache from the source code I obtained here:

  - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz

I unpacked httpd-2.2.15.tar.gz to here:

  - /pt/tmp/httpd-2.2.15/

When I search

  - /pt/tmp/httpd-2.2.15/INSTALL

For the word "module" I see this:

Here is a typical example which configures Apache for the installation
tree /sw/pkg/apache plus the two additional modules mod_rewrite and
mod_speling for later loading through the DSO mechanism:


     ./configure --prefix=/sw/pkg/apache \
     --enable-rewrite=shared \
     --enable-speling=shared

Question 1:
  - What is the DSO mechanism?

Question 2:
  - Can I create mod_ssl.so using --enable-ssl=shared  ?
  - If yes, what is the proper way to create and install mod_ssl.so
after I have already finished my install from source ?


On 6/23/10, Jeff Trawick <tr...@gmail.com> wrote:
> On Wed, Jun 23, 2010 at 3:04 AM, HERALD <he...@avenues.info> wrote:
>>
>> Do you have the ssl module in your module folder?? . the file name would
>> be
>> mod_ssl.so under /Apache/modules/ path
>
> For the benefit of the person with the problem, who appears to be new
> to this: The immediate symptom ("Invalid command 'SSLSessionCache'
> ...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and of
> course there must be a mod_ssl.so installed somewhere.)
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?

Posted by Jeff Trawick <tr...@gmail.com>.
On Wed, Jun 23, 2010 at 3:04 AM, HERALD <he...@avenues.info> wrote:
>
> Do you have the ssl module in your module folder?? . the file name would be
> mod_ssl.so under /Apache/modules/ path

For the benefit of the person with the problem, who appears to be new
to this: The immediate symptom ("Invalid command 'SSLSessionCache'
...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and of
course there must be a mod_ssl.so installed somewhere.)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org