Hi all,

I am working on a web page to help me configure Dansguardian. All seems to go well, but when I apply the chages to files, I need to restart dansguardian. For this, I added apache to the sudoers file with permision to execute /sbin/dansguardian. When I test it on the command line, all goes well, but when I try an exec('sudo /sbin/dansguardin -r'); nothing happens. I've successfully used other commands with exec(); so I know that is working. The only thing that occurs to me is a problem with sudo and php.

I compiled the latest version of Dansguardian and therefore there is no init.d script so exec('sudo /etc/init.d/dansguardian restart') is also out of the question.

Any help would be great. I just hate having to access my server remotely just to restart a simple service...

Cheers,
P.