ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Scripting / API (http://forum.ispsystem.com//forumdisplay.php?f=13)
-   -   Php script - restart apache (http://forum.ispsystem.com//showthread.php?t=540)

noodly 04-27-2009 10:20 PM

Php script - restart apache
 
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":
Code:

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

Quote:

Is it making graceful restart ??
Yes, it call apachectl graceful command


All times are GMT +2. The time now is 12:45 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.