Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th April 2012, 18:16
bvbmedia bvbmedia is offline
Junior Member
 
Join Date: Apr 2012
Location: Netherlands
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via Skype™ to bvbmedia
Exclamation Configuration change kills running Apache processes

Hi,

First of all: ISPConfig, amazing open source solution! It runs very light and the source code looks good.

But, I have noticed that when we do a change on the sites configuration (in the ISPCONFIG panel), Apache will be restarted. This is not so nice, cause when Apache is busy with processing some scripts those processes will be stopped. It's better to use the graceful parameter, so Apache restarts, but the running scripts will continue running.

I fixed it by changing:

/usr/local/ispconfig/server/mods-available/web_module.inc.php

if($action == 'restart') {
exec($conf['init_scripts'] . '/' . $daemon . ' restart');
}

To:

if($action == 'restart') {
exec($conf['init_scripts'] . '/' . $daemon . ' graceful');
}
__________________
Best regards,

Bas van Beek
BVB Media / TYPO3 Multishop

http://www.bvbmedia.nl
http://www.typo3multishop.com
Reply With Quote
The Following User Says Thank You to bvbmedia For This Useful Post:
ITG (9th December 2012)
Sponsored Links
  #2  
Old 21st April 2012, 12:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

I've added this to our bugtracker, so we will check that.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st April 2012, 15:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

We used graceful before but it does not work reliably so we had to change it to restart Ispconfig uses a reload werever possible but especially operations related to ssl changes require a restart.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 26th November 2013, 16:49
styx-tdo styx-tdo is offline
Junior Member
 
Join Date: Nov 2013
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
Default

apache2ctl configtest && apache2ctl restart
Reply With Quote
  #5  
Old 26th November 2013, 17:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
 
Default

Quote:
Originally Posted by styx-tdo View Post
apache2ctl configtest && apache2ctl restart
indeed, thats what ispconfig uses and whats required for ssl changes
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
apache graceful, apache restart, configuration graceful, configuration restart

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi LinuxOnMyMac HOWTO-Related Questions 11 16th October 2010 05:29
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 5th April 2010 00:28
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Can't start apache Musty Server Operation 12 9th March 2008 14:58
Apache Virtual Hosts - I have never gotten this right. DazzyB Server Operation 2 24th December 2007 14:37


All times are GMT +2. The time now is 21:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.