Forums Forums (
-   Scripting / API (
-   -   Php script - restart apache (

noodly 04-27-2009 10:20 PM

Php script - restart apache

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":

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

All times are GMT +2. The time now is 08:27 PM.

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