Can PHP restart Apache?

Posted by JohnA on Stack Overflow See other posts from Stack Overflow or by JohnA
Published on 2009-01-08T20:16:04Z Indexed on 2010/04/24 13:23 UTC
Read the original article Hit count: 337

Filed under:
|

I have a local server which needs to make changes to a virtual hosts apache config file and then restart apache so the new config takes effect.

Can PHP do this? I tried passthru and exec but they didn't work. Maybe the problem is that I'm trying to restart PHP's parent process?

Thanks for any help!!

© Stack Overflow or respective owner

Related posts about php

Related posts about apache