RE: [squid-users] Squid -k reconfigure from Web form

From: Pasi Holmström <pasi.holmstrom@dont-contact.us>
Date: Thu, 26 Feb 2004 12:53:24 +0200

At 07:38 26.2.2004 +0100, Elsen Marc wrote:
>
>> I'd like to run squid -k reconfigure from Web form. I know it
>> sounds like a
>> crazy idea, but that's what I like to do. The idea is make a
>> sevice that
>> gives a teacher an easy way to restrain class from Internet.
>> The other part
>> of program works but managing Squid isn't.
>> I have perl script which works fine when run from shell, but
>> not when run
>> with Apache. I wonder if it's possible at all?
>>
>> system("/usr/local/squid/sbin/squid -k reconfigure") causes:
>> squid: ERROR: Could not send signal 1 to process 3646: (1)
>> Operation not
>> permitted
>>
>
> Probably, the intended program must run under the same uid as the
>user squid is being configured to run under in squid.conf or else
>the application must run as root.
>
> M.

Ok.If want to run program as user squid, how can I do this? I found that it
is possible with <VirtualHost> directive in httpd.conf, but I didn't manage
to do it.
I have RH9.0, Apache 2.0.40 and Squid 2.5

PH
 
Received on Thu Feb 26 2004 - 03:53:27 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:03 MST