ispCP - Board - Support
[SOLVED] adding subdomain cause apache restart ? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: [SOLVED] adding subdomain cause apache restart ? (/thread-7820.html)

Pages: 1 2


[SOLVED] adding subdomain cause apache restart ? - tytanick - 09-10-2009 09:05 PM

hi, i am wondering about how does it works....
When i add in user control panel - domain or subdomain or even alias. then for 2-3 seconds apache is down because apache is restarting after every change in config file ... so for 2-3 seconds www server isnt working - it should be that !
Tell me is there any way to make that apache after changes dont restart but only do something else to reload configuration ?
It is very important that apache is working all the time, and this every time restarting thing make holes in "uptime".


RE: adding subdomain and apache restart ? - gOOvER - 09-10-2009 09:10 PM

What do your log say?


RE: adding subdomain and apache restart ? - tytanick - 09-10-2009 09:23 PM

when i am adding-deleting subdomains:

/var/log/apache2/users/default-error.log
Code:
[Thu Sep 10 13:19:30 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 10 13:19:32 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.2.10-pl1-gentoo with Suhosin-Patch configured -- resuming normal operations
[Thu Sep 10 13:20:04 2009] [warn] child process 22704 still did not exit, sending a SIGTERM
[Thu Sep 10 13:20:06 2009] [warn] child process 22704 still did not exit, sending a SIGTERM
[Thu Sep 10 13:20:08 2009] [warn] child process 22704 still did not exit, sending a SIGTERM
[Thu Sep 10 13:20:10 2009] [error] child process 22704 still did not exit, sending a SIGKILL
[Thu Sep 10 13:20:11 2009] [notice] caught SIGTERM, shutting down
[Thu Sep 10 13:20:33 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 10 13:20:35 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.2.10-pl1-gentoo with Suhosin-Patch configured -- resuming normal operations
[Thu Sep 10 13:20:45 2009] [notice] caught SIGTERM, shutting down
[Thu Sep 10 13:20:49 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 10 13:20:51 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.2.10-pl1-gentoo with Suhosin-Patch configured -- resuming normal operations
[Thu Sep 10 13:21:15 2009] [notice] caught SIGTERM, shutting down
[Thu Sep 10 13:21:19 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Sep 10 13:21:21 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.2.10-pl1-gentoo with Suhosin-Patch configured -- resuming normal operations



RE: adding subdomain cause apache restart ? - kilburn - 09-10-2009 10:55 PM

... and the problem is?


RE: adding subdomain cause apache restart ? - tytanick - 09-10-2009 11:47 PM

(09-10-2009 10:55 PM)kilburn Wrote:  ... and the problem is?

My problem is that when i add domain or whatever - and if i see right - script run command "/etc/ini.d/apache2 restart" - so for about 3 seconds APACHE IS DOWN !
and if in that time i will try to enter any of the websites - they wont load and i will recive in my web browder "Cannot load page ...."

apache should be reloading , nad in my case i see that apache is restarting

--------------- added after while of thinking
i am working in gentoo ....
when i use command "/etc/ini.d/apache2 restart" and in my webbrowser i am trying to reload page, i recive message "Connection lost"
and whe i use command "/etc/ini.d/apache2 reload", and reload page in webroweser- everything is OK. so meaby little bug in ISPCP scripts ?


RE: adding subdomain cause apache restart ? - kilburn - 09-11-2009 12:08 AM

Sorry, for some reason I missed your first post (browser scrolled downards without me noticing it), so I didn't read what whas the problem.

That said, you're completely right. The involved file is this one, and it does some atrocious things to make sure the service is restarted. You could try to write a patch... Wink


RE: adding subdomain cause apache restart ? - tytanick - 09-11-2009 12:21 AM

omg me ??? i would spend whole day to crack this file Big Grin
Let me write to developers about this Big Grin
But tell me guys - everyone who enter this website... if you add domain/alias/subdomain anr imidietly after that you are trying to refresh website, is your connection to server corrupt ? or everything works fine ?


RE: adding subdomain cause apache restart ? - sci2tech - 09-11-2009 01:07 AM

When apache is shut down, any connection is dropped. Please open a ticket. For debian this can be improved using /etc/init.d/apache2 reload instead apache2ctl stop... sleep ... start thing


RE: adding subdomain cause apache restart ? - kilburn - 09-11-2009 01:35 AM

apache2ctl graceful is the common baseline to use IMHO Wink


RE: adding subdomain cause apache restart ? - sci2tech - 09-11-2009 01:43 AM

True, but /etc/init.d/apache2 reload do configtest before graceful, so if disaster happen, crashing apache is delayed until somebody (admnistrator?) do a restart. Maybe this it should be implemented by us too.