httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <>
Subject Re: [users@httpd] PHP to control Apache
Date Wed, 09 Feb 2011 11:20:48 GMT
On 02/09/2011 01:16 AM, Jorge Schrauwen wrote:
> On Tue, Feb 8, 2011 at 3:01 PM, Matus UHLAR - fantomas
> <>  wrote:
>> On 06.02.11 23:05, Lars Nielsen wrote:
>>> I am writing a PHP application to control primarily my VirtualHost
>>> configurations in Apache(2.2.9). Can you guide my to any good knowlegde
>>> of
>>>   1. how to structure the generated configurationfile(s)
>>>   2. how to reload/restart apache from PHP?
>> mod_perl is designed to do such things. It can do much more of course.
> Here is a simple example:

The problem with using mod_perl is one needs to know perl to a decent 
extent or at least db operations in perl. It is a strict requirement.
Where as if you use inotify events to reload the config file when it is 
changed, there's no requirement of perl, you can do the automatic config 
modifier in your favorite language.

Another idea (may be bad one) is to use a RewriteMap and generate 
rewrite maps using php (it would be a highly cpu intensive task for 
apache probably, no ideas..never used rewritemap)

Nilesh Govindarajan

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message