Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am running Centos 6.5 2.6.32-431.11.2.el6.x86_64.

I have Apache PHP and openssl which I compiled from source

apache2.4.7 php 5.5.10 openssl 1.0.1f

I have updated apache to 2.4.7 on another instance sucessfully, but on this server I get the following error.

httpd: Syntax error on line 129 of /usr/local/apache2/conf/httpd.conf: Cannot load   modules/ into server: /usr/local/apache2/modules/ undefined symbol: SSL_get_srp_userinfo

my config for the openssl is

./config --prefix=/usr/local --openssldir=/usr/local/openssl -fPIC

my config for apache, which is the config.nice for the previous 2.4.7 install is

"./configure" \
"--enable-so" \
"--with-included-apr" \
"--enable-ssl" \
"--with-ssl=/usr/local/openssl" \

I can see from the config.status that it is looking in the right place for the ssl

S["MOD_SSL_LDADD"]="-export-symbols-regex ssl_module"
S["ab_LDFLAGS"]="-L/usr/local/openssl/lib -lssl -lcrypto -lrt -lcrypt -lpthread"

however when doing an ldd on the actual shows something totally different then what I see on all the other apache installation that I have working with mod_ssl.

normally on all the working installation I see something like

# ldd /usr/local/apache2/modules/ =>  (0x00007fff489ff000) => /lib64/ (0x00007f839028d000) => /lib64/ (0x00007f8390056000) => /lib64/ (0x00007f838fe38000) => /lib64/ (0x00007f838faa5000)
    /lib64/ (0x00007f83908bd000) => /lib64/ (0x00007f838f843000) => /lib64/ (0x00007f838f63e000)[/CODE]

however, on this particular installation, i see

# ldd /usr/local/apache2/modules/ =>  (0x00007ffff1bff000) => /usr/lib64/ (0x00007f93f743b000) => /lib64/ (0x00007f93f7232000) => /lib64/ (0x00007f93f6ffb000) => /lib64/ (0x00007f93f6dde000) => /lib64/ (0x00007f93f6a49000) => /lib64/ (0x00007f93f6805000) => /lib64/ (0x00007f93f651f000) => /lib64/ (0x00007f93f631a000) => /lib64/ (0x00007f93f60ee000) => /usr/lib64/ (0x00007f93f5d0e000) => /lib64/ (0x00007f93f5b09000) => /lib64/ (0x00007f93f58f3000)
    /lib64/ (0x00007f93f7a7b000) => /lib64/ (0x00007f93f567c000) => /lib64/ (0x00007f93f5470000) => /lib64/ (0x00007f93f526d000) => /lib64/ (0x00007f93f5053000) => /lib64/ (0x00007f93f4e33000)[/CODE]

this is a lot more extensive. I Do not think this could be because apache is not reading from the correct location for openssl.

Any suggestions are welcome.


share|improve this question
Why are you building all these packages from source? –  Michael Hampton Apr 7 '14 at 18:12
In order to PCI compliant, need to have the latest security patches. –  user207044 Apr 7 '14 at 22:24
That doesn't necessarily mean you have to build everything from source. All of these packages are available in reliable repositories with full security updates. –  Michael Hampton Apr 7 '14 at 22:40
And of course you have to upgrade OpenSSL again... –  Michael Hampton Apr 11 '14 at 16:36

2 Answers 2


The solution was to put the actual LDFLAGS configuration in the actual configuration. so it should look like this

LDFLAGS="-L/usr/local/lib64"; export LDFLAGS
"./configure" \
"--enable-so" \
"--with-included-apr" \
"--enable-ssl" \
"--with-ssl=/usr/local/openssl" \
"LDFLAGS=-L/usr/local/lib64" \
share|improve this answer

I am running CentOS 6.5 2.6.32-431.17.1.el6.x86_64, mostly for supporting Java servlet containers

Thanks to your auto-answer, I've been able to build and get httpd running with SSL. The breakthrough for me was building both openssl and httpd with PIC/pie as appropriate

config arguments for OpenSSL 1.0.1h 5 Jun 2014 were used in this context

cd openssl-1.0.1h
./config -fPIC --prefix=/usr/local --openssldir=/usr/local/openssl
    make test
    sudo make install

config for Apache/2.4.9 (Unix) APR 1.5.1, APR-UTIL 1.5.3 was this context

export LDFLAGS=”-L/usr/local/lib64”
./configure  --prefix=/usr/local/httpd \
   --enable-so \
   --enable-pie \
   --with-apr=/usr/local/apr/bin/apr-1-config \
   --enable-ssl \
   --with-ssl=/usr/local/openssl \
   --enable-allowmethods \
   --enable-info \
   --enable-speling \
   --with-mpm=prefork \
   LDFLAGS=-L/usr/local/lib64 \

And the changes that I made to httpd.conf before it worked were:

User apache
Group apache

LoadModule ssl_module modules/
LoadModule socache_shmcb_module modules/

Include conf/extra/httpd-ssl.conf

After which all that was necessary was to generate a self-signed cert and point to them appropriately in


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.