Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd June 2010, 14:11
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default Apache: configtest before restart?

Just chucking an idea into the pot....

If apache is restarted using apachectl script it first runs configtest before attempting a restart.

If apache is restarted using /etc/init.d/httpd script it doesn't run configtest before attempting a restart.

I think ISPConfig should run a configuration check before a restart (to prevent IPSConfig becoming unuseable.)

The restart is triggered in server/mods-available/web_module.inc.php.

If we included a config test before restarting, where would the sensible place be to report an error if it fails the config test?
Reply With Quote
Sponsored Links
  #2  
Old 3rd June 2010, 14:31
mike_p mike_p is offline
Senior Member
 
Join Date: Mar 2010
Location: Surrey, England
Posts: 140
Thanks: 9
Thanked 28 Times in 17 Posts
Default

I've just had a quick read of the apache documentation and it seems it would be possible to run a configtest as a non-root user: although it won't be a perfect test it will check syntax happily.

With regards to ISPconfig, any action that would require a restart can be checked before being sent to the queue? Or could items in the job queue be marked with a 'pending' tag until configuration errors have been fixed?
Reply With Quote
  #3  
Old 3rd June 2010, 17:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
 
Default

Quote:
With regards to ISPconfig, any action that would require a restart can be checked before being sent to the queue?
This wont work as ISPConfig is a multiserver controlpanel and you can not assume that the interface runs on the same server then the apache webserver.

But what we can do is to add a configtest in the apache server plugin. One problem with the configtest is that is is not able to find problems related to ssl certificates do not throw an error when running the config test but apache will not restart.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 21:13
Certificate and apache restart problems shajazzi Installation/Configuration 1 24th August 2009 13:41
problems with suexec gobokster Installation/Configuration 7 7th May 2009 14:33
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45


All times are GMT +2. The time now is 06:34.


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