Re: PHP to control Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 Nielsen <lars@xxxxxxxxxx> 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/restart apache from PHP?
>
> Regards
> Lars Nielsen
> lars@xxxxxxxx - www.lfweb.dk
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

-- 
Sent from my mobile device


--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
Cheap and Reliable VPS Hosting: http://j.mp/arHk5e

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux