Cannot start Apache as non-root anymore: missing libaprutil-1.so.0 ??
I have a web application running on a production server. The production server already has its own Apache. My web application runs on its own Apache, which runs on port 8000, and mapped to the "primary" Apache through reverse proxy (my Apache www root is seen as a sub-folder in the primary Apache).
The primary Apache resides in /usr/sbin, while my Apache resides in /home/user1/fgs/www/bin/. I always start my Apache using user1 instead of root, and never had problem with such thing before. Anyway, I start my Apache with the following command: Code:
/home/user1/fgs/www/bin/httpd -d /home/user1/fgs/www -f /home/user1/fgs/www/conf/live.httpd.conf -k start Lately, my web application just stopped working. After some investigation, I discovered my Apache just won't start anymore. Everytime I start my Apache using user1 account, I always get the following error: Code:
/home/user1/fgs/www/bin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory Quote:
Many thanks, -Kresh |
Hi,
You can run Code:
ldd /home/user1/fgs/www/bin/httpd Since root can start apache, I guess the library exists in the system library path, so you can make a symlink to it: Code:
ln -s /usr/lib/libaprutil-1.so /home/user1/fgs/www/lib |
Quote:
By the way, I just wonder: what made the library missing on the first place? I don't really know what happened to the server (and nor do the 'systems engineers', by the way). All I know is that they have removed the email service from the server and moved it somewhere else. Is it possible they erase the symlink by accident? |
No, I don't think so. Unless they removed the system libarputil.
Most likely someone deleted the aprutil library that came with the apache you installed in your homedir Regards |
Sorry for thread necro, but....
I don't understand. libaprutil-1.so.0 does exist in my Apache installation. Quote:
Quote:
Quote:
What happens? Help. |
Hi,
You didn't post the output of Code:
ldd /home/user1/fgs/www/bin/httpd Anyway to make apache use the aprutil library installed in /home/user1/fgs/www/lib, you can use LD_LIBRARY_PATH, before running "apachectl start" Code:
export LD_LIBRARY_PATH=/home/user1/fgs/www/lib:$LD_LIBRARY_PATH |
All times are GMT -5. The time now is 07:00 AM. |