[squid-users] recaching squid via PHP.

From: Timothy Larrea <webmaster@dont-contact.us>
Date: Fri, 9 Nov 2007 10:13:23 +1100

Hi,

I'm trying to trigger a recache of the squid config files from a PHP
file, reason being I've got a web page that staff members can use to
enable or disable specific computer labs (subnets) from being able to
access the internet. The PHP file currently adds and removes lines from
a specific file referenced by squid to determine allowable source
subnets, however I need to execute basically a squid -k reconfigure
command from the PHP page each time the config file is changed. I tried
using a shell script that did the command, with the SUID flag set so it
would execute as root but this doesn't work (and is perhaps not very
secure?) Any suggestions?

Thanks.
Tim.
Received on Thu Nov 08 2007 - 16:13:32 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST