Strange Problem With Apache 2.2.6 Startup Using mod_ssl.so & OpenSSL0.9.8g

Strange Problem With Apache 2.2.6 Startup Using mod_ssl.so & OpenSSL0.9.8g

am 29.12.2007 17:58:30 von InDeep

Hi,

I'm very experienced with Apache, and compiling it with PHP, etc.

I just completed an installation, and very strange behavior.

My Apache 2.2.6 compilation config:

../configure \
--enable-modules=all \
--with-ssl=/usr/local/ssl \
--with-mpm=worker \
--with-included-apr \
--enable-so \
--enable-ssl \
--enable-mods-shared=all

The problem is that when I start Apache I get this error:

~# /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 86 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_ssl.so
into server: /usr/local/apache2/modules/mod_ssl.so: undefined symbol: EVP_idea_ecb

The error points to mod_ssl, and if I comment-out mod_ssl.so it will start from any directory, as it should.

But if I go to where openssl is built ( not installed ) and start with mod_ssl.so active, voila it works. Apparently
there is something that is not getting installed correctly with SSL but I have no clue! SSL is cryptic, go figure! :-)

~/build/openssl-0.9.8g# /usr/local/apache2/bin/apachectl start

root 12205 1 5 08:42 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 12206 12205 0 08:42 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 12207 12205 1 08:42 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 12209 12205 1 08:42 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 12211 12205 0 08:42 ? 00:00:00 /usr/local/apache2/bin/httpd -k start


I've tried to figure out if there is some SSL installation that did not complete, but I'm not an SSL expert, so I don't
know where or what to look at. I recently did the exact same install on several other machines about a month ago and
had no problem.

I've configured and installed OpenSSL into /usr/local/ssl to compile PHP5, and did not install it system-wide, to avoid
conflicts with upgrading the system using apt-get. ( System is Ubuntu 7.10 )

My SSL compiled as follows:

../config shared threads zlib

Please advise. I've installed Apache this way numerous times before and never had this happen, so I'm completely baffled.

Thanks in advance!!

-ID-
indeep-at-epic-websites-dot-com

Re: Strange Problem With Apache 2.2.6 Startup Using mod_ssl.so & OpenSSL 0.9.8g

am 29.12.2007 18:24:53 von unknown

Post removed (X-No-Archive: yes)

Re: Strange Problem With Apache 2.2.6 Startup Using mod_ssl.so &OpenSSL 0.9.8g

am 29.12.2007 19:02:26 von InDeep

Davide,

Thanks for your quick response and advice!

I realize my post may not be 'directly' related to Apache configs, however,
it _is_ related to apache configuration in the sense of what apache uses,
such as OpenSSL, to compile Apache, so I think it will be informative for a
lot of people out there that may have the same issue and have found no reason
why they are having problems. I googled for an answer before posting here,
and nothing showed up. So anyway...

I added /usr/local/ssl/lib to the apache envvars file in /usr/local/apache2/bin and got it working. I still don't know
why after years of installing Apache, why it would suddenly behave differently but I guess sh-- happens.

/usr/local/apache2/bin/envvars:

LD_LIBRARY_PATH="/usr/local/ssl/lib:/usr/local/apache2/lib:$ LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

It's working now, from any directory, whew, now I can concentrate on actually using it.

By the way, I did the ldconfig thang, but it didn't seem to help. My /etc/ld.so.conf:

/usr/local/ssl/lib
/usr/lib
/usr/local/lib
/lib/
include /etc/ld.so.conf.d/*.conf

Thanks for your help!!

Happy Holidays!

-ID-

Davide Bianchi wrote:
> On 2007-12-29, InDeep wrote:
>> httpd: Syntax error on line 86 of /usr/local/apache2/conf/httpd.conf:
>> Cannot load /usr/local/apache2/modules/mod_ssl.so
>> into server: /usr/local/apache2/modules/mod_ssl.so: undefined symbol:
>> EVP_idea_ecb
>>
>> The error points to mod_ssl, and if I comment-out mod_ssl.so it will
>> start from any directory, as it should.
>>
>> But if I go to where openssl is built ( not installed ) and start with
>> mod_ssl.so active, voila it works. Apparently
>> there is something that is not getting installed correctly with SSL
>> but I have no clue! SSL is cryptic, go figure! :-)
>
> It seems that some library is not in your library path, I think
> you should add that 'where ssl is built' to your ld.so.conf file
> and then re-run ldconfig, or be sure that wherever the ssl library are
> is in the configuration file for your dynamic loader.
>
> Anyway, this has nothing to do with the configuration of apache, I
> suggest you ask in the developer forum for Apache related to your OS.
>
> Davide
>