Re: [users@httpd] PHP to control Apache

2011-02-09 Thread Lars Nielsen
ons, 09 02 2011 kl. 14:59 +0100, skrev Fredric Fredricson: > On 02/09/2011 12:20 PM, Nilesh Govindarajan wrote: > > [snip] > > > > 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. > > [snip] > This

Re: [users@httpd] PHP to control Apache

2011-02-09 Thread Fredric Fredricson
On 02/09/2011 12:20 PM, Nilesh Govindarajan wrote: [snip] 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. [snip] This, of course, depends on your situation but perl DBI is quite well documented and fai

Re: [users@httpd] PHP to control Apache

2011-02-09 Thread Nilesh Govindarajan
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

Re: [users@httpd] PHP to control Apache

2011-02-08 Thread Jorge Schrauwen
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 config

Re: [users@httpd] PHP to control Apache

2011-02-08 Thread Matus UHLAR - fantomas
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_pe

Re: [users@httpd] PHP to control Apache

2011-02-07 Thread Nick Kew
On Sun, 06 Feb 2011 23:05:47 +0100 Lars Nielsen wrote: > Hi, > > 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/resta

Re: [users@httpd] PHP to control Apache

2011-02-06 Thread Nilesh Govindarajan
You can use incrond to fire a script on create/modification event of a config file that php would be writing to check the config and restart apache gracefully if test is succesful On 2/7/11, Lars Nielsen wrote: > Hi, > > I am writing a PHP application to control primarily my VirtualHost > configu

Re: [users@httpd] PHP to control Apache

2011-02-06 Thread Nilesh Govindarajan
You could use incrond to launch a script that would run a script when a file is modified. the script will test the config & if it is ok restart apache gracefully. example: IN_CREATE,IN_MODIFY /path/to/watch /path/to/script The above incrontab may be wrong, check with manpage. On 2/7/11, Lars Niels

Re: [users@httpd] PHP to control Apache

2011-02-06 Thread Frank Gingras
Lars, 1) http://httpd.apache.org/docs/current/vhosts/examples.html 2) Bad idea, unless you can sudo and call apachectl restart On 06/02/2011 5:05 PM, Lars Nielsen wrote: Hi, I am writing a PHP application to control primarily my VirtualHost configurations in Apache(2.2.9). Can you guide my to

[users@httpd] PHP to control Apache

2011-02-06 Thread Lars Nielsen
Hi, 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? Regards Lars Nielsen l...@lfweb.dk - www.lfweb.dk