View Full Version : Php script - restart apache
noodly
04-27-2009, 10:20 PM
Hello
I have to restart my apache server via Ispmanager API is't possible to do ?
GakcaT
04-28-2009, 04:40 AM
At first you have to use one of authorization methods (they are described in the API documentation). For example, by using "authinfo":
https://your_ip/manager/ispmgr?authinfo=admin_name:admin_password&out=xml&func=services.restart&elid=HTTP
The other way is to use "/usr/local/ispmgr/sbin/mgrctl services.restart elid=HTTP" (if you have to use the script locally).
noodly
05-03-2009, 08:52 PM
Is it making graceful restart ??
I have free hosting and after my client add his account i have to restart apache. What do you think if it will be good method ?
slava
05-04-2009, 10:54 AM
Is it making graceful restart ??Yes, it call apachectl graceful command
vBulletin® v3.8.9, Copyright ©2000-2023, vBulletin Solutions, Inc.