Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 13:22:47

Author Topic: [RESOLVED] Apache+nginx still dying after removing/adding domain  (Read 13116 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache+nginx still dying after removing/adding domain
« Reply #15 on: 2014-09-18, 13:14:38 »
Every process to add/delete/update will be execute 'sh /script/fixweb --domain=<domain>'.

Because at previous code, except '--target=defaults', will be delete all domains configs and it's make trouble for '--domain='. So, in latest update, this issue already fixed. Read fixweb.php.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #16 on: 2014-09-18, 13:31:34 »
OK. I'm updating and testing.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #17 on: 2014-09-18, 13:38:45 »
Just updated to Kloxo-MR 7.0.0.b-2014091704 and Apache+nginx is still dying so nothing was fixed.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #18 on: 2014-09-18, 13:42:25 »
It seems /etc/init.d/nginx reload is not responding after adding domain:

Quote
[root@c44-49 ~]# /etc/init.d/nginx reload
[root@c44-49 ~]#

because it's dead (while it should be running):

Quote
[root@c44-49 ~]# ps aux | grep nginx
root     29775  0.0  0.0 103260   892 pts/1    S+   13:42   0:00 grep nginx

so we have to restart it:

Quote
[root@c44-49 ~]# /etc/init.d/nginx restart
Zatrzymywanie nginx:                                       [NIEUDANE]
Uruchamianie nginx:                                        [  OK  ]

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache+nginx still dying after removing/adding domain
« Reply #19 on: 2014-09-18, 14:12:31 »
Need waiting 5-10 secs for restart web services.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #20 on: 2014-09-18, 14:27:35 »
I know, but it's dying completely, with old drivers everything is working great:

See the video: http://galeriaportali.pl/kloxomr.wmv

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #21 on: 2014-09-20, 17:59:46 »
Still not fixed in Kloxo-MR 7.0.0.b-2014092002 - I have to restart nginx manually, watchdog does not restart it.
« Last Edit: 2014-09-20, 18:01:53 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache+nginx still dying after removing/adding domain
« Reply #22 on: 2014-09-20, 18:40:01 »
Try copy /usr/local/lxlabs/kloxo/sbin/kloxo.php to custom.kloxo.php and modified 'timed_exec' value.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #23 on: 2014-09-21, 14:31:33 »
It does not help. Mustafa let me explain this one more time.

Old driver allowed nginx to just reload graceful after each domain was added/removed. No downtime !

New driver kills nginx so we have about 60-120 seconds downtime till it will be restarted - kloxo it trying to reload dead nginx but that is not possible !

Restore the old driver it was working much better.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache+nginx still dying after removing/adding domain
« Reply #24 on: 2014-09-21, 15:14:30 »
What's nginx version better according your opinion.

Before centalt repo down, Kloxo-MR use nginx from centalt but after that use from nginx.org directly.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #25 on: 2014-09-21, 20:14:55 »
What's nginx version better according your opinion.

Before centalt repo down, Kloxo-MR use nginx from centalt but after that use from nginx.org directly.

nginx version does not matter, because it works fine. I'm using the latest upload with old webdrivers for Kloxo and all works fine. Kloxo is reloading nginx and gracefulling apache so there is no downtime when adding/deleting domains (nginx is displaying a copy of page from it's cache while apache is not ready).

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Apache+nginx still dying after removing/adding domain
« Reply #26 on: 2014-09-22, 04:54:58 »
Update your Kloxo-MR 7.0.0.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Apache+nginx still dying after removing/adding domain
« Reply #27 on: 2014-09-22, 16:21:38 »
It works again - thanks !!!

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Still crashing when removing customers with many domains, FTP accounts etc.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Still crashing when removing customers with many domains, FTP accounts etc.
Try update.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.031 seconds with 19 queries.

web stats analysis