You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by oh...@cox.net on 2008/03/19 07:22:30 UTC
[users@httpd] How to set openssl library path during Apache build (on Redhat)?
Hi,
Previously, I've built various versions of Apache with SSL support (using openssl) on some Solaris machines, but we're moving to Redhat.
In our case, management wants openssl to go into /apps/openssl and Apache into /apps/httpd.
Doing the openssl and Apache (2.2.4) builds (configure, then gmake/gmake install) was fine, but I found that after completing the build, when I try to start Apache (e.g., ./apachectl startssl), it's saying that it can't find the openssl .SO file.
I can get around this by setting LD_LIBRARY_PATH to /apps/openssl/lib before running apachectl, but this is a bit annoying, so I was wondering if there's a command line parameter that I can set when I do the Apache configure so that the built binaries can be run without setting the LD_LIBRARY_PATH?
Thanks in advance!
Jim
---------------------------------------------------------------------
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] How to set openssl library path during Apache
build (on Redhat)?
Posted by oh...@cox.net.
Graeme,
THANKS!
It looks like the /etc/ld.conf.d/openssl.conf was already created, so it works after I did just the /sbin/ldconfig.
Jim
---- Graeme Fowler <gr...@graemef.net> wrote:
> On Wed, 2008-03-19 at 02:22 -0400, ohaya@cox.net wrote:
> > I can get around this by setting LD_LIBRARY_PATH to /apps/openssl/lib before running apachectl, but this is a bit annoying, so I was wondering if there's a command line parameter that I can set when I do the Apache configure so that the built binaries can be run without setting the LD_LIBRARY_PATH?
>
> cat <<EOF > /etc/ld.so.conf.d/openssl.conf
> # Path to OpenSSL lib dir
> /apps/openssl/lib
> EOF
>
> /sbin/ldconfig
>
> Off you go! You may need to do this for anything else you localise this
> way - if the libs are not in a "standard" path
> (/lib, /usr/lib, /usr/local/lib) then you need an app-specific override
> for them by either using the trick above or setting LD_LIBRARY_PATH. The
> two are synonymous, but the file-based way is more portable.
>
> Graeme
>
>
> ---------------------------------------------------------------------
> 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] How to set openssl library path during Apache
build (on Redhat)?
Posted by Graeme Fowler <gr...@graemef.net>.
On Wed, 2008-03-19 at 02:22 -0400, ohaya@cox.net wrote:
> I can get around this by setting LD_LIBRARY_PATH to /apps/openssl/lib before running apachectl, but this is a bit annoying, so I was wondering if there's a command line parameter that I can set when I do the Apache configure so that the built binaries can be run without setting the LD_LIBRARY_PATH?
cat <<EOF > /etc/ld.so.conf.d/openssl.conf
# Path to OpenSSL lib dir
/apps/openssl/lib
EOF
/sbin/ldconfig
Off you go! You may need to do this for anything else you localise this
way - if the libs are not in a "standard" path
(/lib, /usr/lib, /usr/local/lib) then you need an app-specific override
for them by either using the trick above or setting LD_LIBRARY_PATH. The
two are synonymous, but the file-based way is more portable.
Graeme
---------------------------------------------------------------------
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