Dansguardian doesn't start
-
Hi everyone.
Although i am new to the forum, i've been using and testing pfsense for quite some time and always managed to learn and solve my problems here. I feel this is an awesome community and since this is my first post i'd like to present my respects and apreciation for all the work you are doing.
Now to the point.
I've been trying to install dansguardian package on a test machine for some days in the latest 2.1 snapshots, but never got it to work. My latest experience was with a clean install of 13-08-2012 snapshot and like all the others i'm always getting the same errors.
System log:
dansguardian[49112]: Error parsing the dansguardian.conf file or other DansGuardian configuration files php: /pkg_edit.php: Starting Dansguardian ... dansguardian[27130]: Error parsing the dansguardian.conf file or other DansGuardian configuration files php: /pkg_edit.php: Starting Dansguardian ... dansguardian[1745]: Error parsing the dansguardian.conf file or other DansGuardian configuration files
Always the same message, only different codes
In PHP_errors.log i get
[14-Aug-2012 23:25:37 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:38 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:38 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:38 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:38 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:38 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:38 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:38 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:38 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:38 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:38 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:38 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:38 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:38 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:38 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:38 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:39 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:39 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:39 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:39 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:39 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:39 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:39 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:39 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:39 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:39 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:39 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:40 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:40 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:40 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:40 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:40 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:40 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:40 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:40 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:40 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:40 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:40 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:40 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:41 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:41 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:41 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:41 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:41 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:41 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:41 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:42 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:42 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:42 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:42 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:43 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:43 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:43 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:43 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:43 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:43 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:43 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:43 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:43 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:43 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:43 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:43 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:44 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:44 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:44 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:44 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76 [14-Aug-2012 23:25:49 UTC] PHP Warning: file_get_contents(/usr/local/etc/clamd.conf): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 877 [14-Aug-2012 23:25:50 UTC] PHP Warning: closedir() expects parameter 1 to be resource, null given in /usr/local/pkg/dansguardian.inc on line 69 [14-Aug-2012 23:25:50 UTC] PHP Warning: file(/usr/local/share/certs/ca-root-nss.crt): failed to open stream: No such file or directory in /usr/local/pkg/dansguardian.inc on line 74 [14-Aug-2012 23:25:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/local/pkg/dansguardian.inc on line 76
(It's not all here but i guess it's enough to get the point)
This is from a clean install vmware esxi VM x64
Already reinstalled, deleted and installed, installed squid and then dansguardian, dansguardian then squid, squid3 and some more things i can't remember.
I hope someone can help me or point me in the right direction because i spent several hours searching the forums, reading and trying "everything" without success.
I'm sorry if this is answered somewhere else but i really tried and couldn't find a solution.
Thanks in advance!
-
UPDATE
Today i tried the same process but in the i386 version - same problems.
After that i tried installing squid and HAVP (because of the clamav part) letting HAVP disabled, and after reboot i no longer had those errors in PHP_error.log.
Now the thing is complaining that it can't open or create the log file.
Error opening/creating log file. (check ownership and access rights). I am running as nobody and I am trying to open /var/log/dansguardian/access.log
Tried modifiing the permissions of /var/log/dansguardian/access.log but still i get the same error both in system logs as when i try to start dansguardian from the console.
Any help??