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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

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

Post by pelegk2 »

of yes then how ?
thnaks in advance
peleg
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Im sure it is. Just try:

Code: Select all

exec("apachectl restart");
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Post 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?
Post Reply