Page 1 of 1

Restart Apache from PHP

PostPosted: 26. February 2008 23:44
by Shane N
Is there any way to restart apache directly from PHP? I tried exec("C:\xampp\xampp_restart.exe"); and it ends up stopping apache, but not restarting it. I also tried exec("C:\xampp\apache\bin\apache.exe -k restart"); and it didn't seem to do anything. I have permissions set to allow apache to access these files.