Posted by Jerry Stuckle on 01/18/07 02:53
Aaron Gray wrote:
> Hi,
>
> I am having problems making Apache reload itself.
>
> I have tried a PHP exec calling a bash shell script that does a KILL -HUP on
> Apache to attempt to make it reload its configuration.
>
> The signal in the shell script works fine from root but will not work when
> called from PHP.
>
> Is there anyway to make Apache reload itself from PHP without having to
> doing a signal ?
>
> I am trying to do a configuration reload without requiring root.
>
> Many thanks in advance,
>
> Aaron
>
>
Your Apache user probably doesn't have the authority to do a kill. root
does (of course).
But you don't want to give the Apache user the kill authority, either.
It's a huge security risk.
Let's look at it another way. What problem are you trying to fix?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|