Login   Register  
PHP Classes
elePHPant
Icontem

Restart Apache in windows 2003 server through PHP

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Top level forums  >  PHP Specialists  >  General  >  Restart Apache in windows 2003 server through PHP  
Subject:Restart Apache in windows 2003 server through PHP
Summary:Restarting apache webserver to apply changed configuration
Messages:4
Author:Emad Mohamed Hossam ElDin
Date:2008-12-02 15:49:51
Update:2008-12-02 17:47:34
 

  1. Restart Apache in windows 2003 server through PHP   Reply   Report abuse  
Picture of Emad Mohamed Hossam ElDin
Emad Mohamed Hossam ElDin
2008-12-02 16:36:59
Hello,

How do I restart Apache webserver on a Windows 2003 Server through PHP? I tried:

passthru("PATH/TO/APACHE/httpd.exe -k restart");

but it doesn't restart, although when trying through command line it restarts successfully, I also tried "exec" and "system" but didn't work..

Any help will be greatly Appretiated

There are 3 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.