You are here: Re: Making Apache to 'reload' its configuration « PHP Programming Language « IT news, forums, messages
Re: Making Apache to 'reload' its configuration

Posted by Colin McKinnon on 01/18/07 21:07

Aaron Gray wrote:

> "Toby Inkster" <usenet200701@tobyinkster.co.uk> wrote in message
> news:bs7484-dcj.ln1@ophelia.g5n.co.uk...
>> Aaron Gray wrote:
>>
>>> The signal in the shell script works fine from root but will not work
>>> when
>>> called from PHP.
>>
>> As Jerry indicated, you are probably trying to fix the wrong problem. If
>> we knew *why* you were trying to do this, then we might be able to tell
>> you an alternative to reloading Apache in the first place.
>
> Okay, I am working on putting to gether a server administration program
> thats written in PHP and runs in Apache. It needs to reload the
> configuration after adding, removing, or modifying the virtual web sites
> Apache is serving.
>
> The only simple way I can think of is to do a reload every 10 minutes or
> every hour, as a cron job, or so.

You are writing a server administration program but you don't know how
permissions work. Am I the only one to feel a bit worried at this point?

You need to read up on privilege separation. Certainly use sudo - but there
are other ways. Try Google or read the relevant parts of the Rute.

>
> No that requires a password to be entered.
>

Aaaaarrrgghhhhh!!!!!!

Read the sudo manual. Thouroughly, please.

C.

 

Navigation:

[Reply to this 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

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