> 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?
>
Look at the interface that allows squidclient to request reload/shutdown
etc via cache_mgr: protocol (basically a URI request)
I believe its as simple as configuring a password into squid and the PHP
script, then getting PHP to make a special request from squid.
Amos
Received on Thu Nov 08 2007 - 21:05:05 MST
This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST