Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I am trying to update my squid and squidguard install. I have them working on an OLD server that is due to be decommissioned.
My new setup is on a RHEL 5 Server with 2.6.STABLE6, SquidGuard: 1.2.1 Berkeley DB 4.6.21.
I've set up and installed everything necessary, including the BerkeleyDB. However, when I start squid, I get the following errors before it dies:
(squidGuard): error while loading shared libraries: libdb-4.6.so: failed to map segment from shared object: Permission denied
(squidGuard): error while loading shared libraries: libdb-4.6.so: failed to map segment from shared object: Permission denied
(squidGuard): error while loading shared libraries: libdb-4.6.so: failed to map segment from shared object: Permission denied
2008/02/21 10:57:22| WARNING: url_rewriter #19 (FD 24) exited
2008/02/21 10:57:22| WARNING: url_rewriter #18 (FD 23) exited
2008/02/21 10:57:22| WARNING: url_rewriter #17 (FD 22) exited
2008/02/21 10:57:22| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!
To me, it looks like a permissions issue with the BerkeleyDB. I've got the exact configuration as the my old server, but the new versions include the DB. I've gone over and over the install instructions on the squidguard site, but can't seem to find anything.
Here's the url_rewrite line from my squid.conf:
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
And here is my entire squidguard.conf file:
#
# CONFIG FILE FOR SQUIDGUARD
#
# See *OMMITING DUE TO SQUIDGUARD URL* for more examples
#
A co-worker of mine found the solution. I had selinux enabled. Once it was disabled and the box was rebooted, ta-da! I'm not sure how he discovered it or if it was just an educated guess, but it's working!
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe