Hi,
This is my first post, so forgive me if I sound a little noobish. I have searched the Web for the answer I'm looking for and so far I haven't found anything that pertains to my issue.
My environment:
I'm running Apache/PHP/MySQL on an intranet development server. I support the application (Apache), but not the server itself, so I don't have root access. Everything we support on that server is installed from source and contained in the /data filesystem (using ./configure --prefix=[PATH] ...) using a generic account we su to. We can't use any package management software because of this (since you can't specify the prefix with them).
Apache is installed in my case in /data/apache-2.2.3, and linked as /data/apache.
Note: The server is running RHEL 4 ES, and doesn't have access to the Internet.
My problem:
Recently, I had to upgrade PHP, which meant recompiling it completely including some of the dependencies I needed (such as libpng, freetype, libmcrypt, libmhash, etc...).
Those libraries were previously not installed at all, or were installed in their own folder right at the root of /data. I didn't like this so I used a different prefix when I recompiled them so they are all under /data/lib/[lib_name].
To make sure Apache would still be able to find the shared libraries, I linked the old directories to the new locations (deleted the dirs and created symlinks instead with the same name).
For example, the apr library was installed in /data/apr-httpd, and I compiled the new one in /data/lib/apr, and then created /data/apr-httpd as a link pointing to it.
That didn't work so well... After restarting Apache, I got this error:
Code:
/data/apache-2.2.3/bin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
I don't understand why it can't find it since the file it's looking for is in the /data/lib/apr-util/lib folder, and that the original folder it was in is linked properly to the new one!?
I managed to work around the issue by adding a direct link to libaprutil-1.so.0 in /data/apache/modules, but I would rather like not having to do this.
My question(s):
So what can I do to fix this properly without having to recompile Apache with --with-apr-util=/data/lib/apr-util and --with-apr=/data/lib/apr ?
Is there something I can just add in the httpd.conf file?