US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > Modifications / Add-ons > Scripting / API


Closed Thread
 
Thread Tools
Old 04-27-2009, 10:20 PM   #1
Junior Member
 
Join Date: Apr 2009
Posts: 5
noodly is on a distinguished road
Default Php script - restart apache

Hello


I have to restart my apache server via Ispmanager API is't possible to do ?
__________________
Darmowy hosting
noodly is offline  
Old 04-28-2009, 04:40 AM   #2
ISPsystem team
 
Join Date: Jan 2009
Posts: 111
GakcaT is on a distinguished road
Default

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).
GakcaT is offline  
Old 05-03-2009, 08:52 PM   #3
Junior Member
 
Join Date: Apr 2009
Posts: 5
noodly is on a distinguished road
Default

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 ?
__________________
Darmowy hosting
noodly is offline  
Old 05-04-2009, 10:54 AM   #4
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

Quote:
Is it making graceful restart ??
Yes, it call apachectl graceful command
slava is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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