Reply to Re: Making Apache to 'reload' its configuration

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация