Koozali.org: home of the SME Server

Problem Adding Domain To SquidGuard

Daniel Marte

Problem Adding Domain To SquidGuard
« on: June 05, 2002, 04:21:06 AM »
I just installed SuidGuad version 3.1 on SME 5.1.2 and when I try to add a domain to the list using the control panel I get the following error:

Adding "sexy.com" to the untrusted domains file.

Warning:  open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/squidguard/html/squidguard.php on line 36

Warning:  fopen("/home/e-smith/files/ibays/squidguard/cgi-bin/untrusted/domains","a") - Operation not permitted in /home/e-smith/files/ibays/squidguard/html/squidguard.php on line 36


Where do I need to add this domain?  DO I need to go to the console directly?  Whats the purpose of the panel (using the Server-manager)?

Daniel

Tim Hogan

Re: Problem Adding Domain To SquidGuard
« Reply #1 on: June 07, 2002, 06:25:27 AM »
The panel does not work properly with SME 5.12.  The domains list is located in /usr/local/squidGuard/db/trusted.  After editing you need to restart squid.  I wrote a simple batch file to speed up making changes to the trusted domains and put it in my root directory:

#!/bin/sh
cd /usr/local/squidGuard/db/trusted
pico domains
cd /root
/etc/rc.d/init.d/squid stop
/etc/rc.d/init.d/squid stop


If you do something like this you will need to set the modes to make it executable.

Hope this helps.

Regards,

Tim Hogan