Page 1 of 1

is it possible to restart apache server from a php script?

Posted: Wed Jun 02, 2004 6:03 am
by pelegk2
of yes then how ?
thnaks in advance
peleg

Posted: Tue Jun 22, 2004 12:32 am
by kettle_drum
Im sure it is. Just try:

Code: Select all

exec("apachectl restart");

Posted: Sun Jun 27, 2004 12:15 am
by pelegk2
does this work on linux or on windows too?
whats the best way on windows that i can do to check it really did a restart?