[squid-users] squid/squidGuard/MySQL Problem

From: OTR Comm <otrcomm@dont-contact.us>
Date: Wed, 08 Oct 2003 19:30:56 -0700

Hello,

I am running squid-3.0-PRE3-20030924 and have squidGuard-1.2 as my
redirector. I have hacked squidGuard to support MySQL queries. When I
run squidGuard in test mode from the command line, I can query MySQL
with no problems, and I can write to a 'debugging' file while I am
testing my code development.

My problem is that when I call this hacked version of squidGuard from
squid, none of the MySQL queries work and none of my 'debugging' files
are being written to. This is only when squid makes the call to
squidGuard.

squid, squidGuard, and my apache server all run as nobody in this test
environment. All squid and squidGuard files are owned by nobody.root,
and both owner and group have rwx permissions on files and directories.

I can 'su nobody' and run squidGuard from the command line, and the
MySQL queries work okay and the 'debugging' files get written to.

I asked this questions at the squidGuard list, but didn't get any help.
I really believe it is a squid problem, so I am asking the question
here.

This issue is holding me up in my code development, so if anyone knows
what night be going on here, please let me know.

Also, if there are ways to put squid in a 'stepper debugging mode,' I
would appreciate help in how to do this. I would like to watch squid
call squidGuard, and then step into squidGuard and step through the code
as it executes. Is this possible? Is this something that I can compile
in at build time?

Thanks,
Murrah Boswell
Received on Wed Oct 08 2003 - 20:32:05 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:26 MST