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-06-17, 03:41:56

Author Topic: httpd restart issue after an update and sh /script/cleanup  (Read 5510 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Lately when i run an update (yum update kloxomr) and run sh /script/cleanup i get the following towards the end:
Initialize logrotate
Preparing RoundCube database
- Fixing MySQL commands in import files
- Generating password
- Add Password to configuration file
- Could not grant privileges. Script Abort
*** Restart services - BEGIN ***
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]
Stopping httpd:                                            [  OK  ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
Stopping Hiawatha web server:                              [  OK  ]
Starting Hiawatha web server:                              [  OK  ]
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Stopping kloxo-phpcgi:                                     [  OK  ]
Starting kloxo-phpcgi:                                     [  OK  ]
Stopping kloxo-hiawatha:                                   [  OK  ]
Starting kloxo-hiawatha:                                   [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting php-fpm:                                          [  OK  ]
*** Restart services - END ***

Process Time: 00:00:01:37.97424 (dd:hh:mm:ss:xxxxxx)
[root@mail ]# service httpd status
httpd is stopped
[root@mail ]# service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
[root@mail ]#

Why is Apache trying to bind on port 80 rather than on 30080 as i run Hiawatha proxy?
Solution to the problem is to run fixweb followed by another restart-all, but it shouldn't be like that.


Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #1 on: 2014-04-17, 16:13:04 »
Try reboot. It's apache issue.
..:: 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: httpd restart issue after an update and sh /script/cleanup
« Reply #2 on: 2014-04-18, 18:27:16 »
Try reboot. It's apache issue.

It's init.conf issue ;) Wrong port is being inserted out there.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #3 on: 2014-04-18, 19:52:44 »
What's you mean?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Kloxo-DR

  • Senior Member
  • *
  • Posts: 239
  • Karma: +3/-9
    • View Profile
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #4 on: 2014-04-18, 20:01:50 »
Hi Mustafa,
What's you mean?.

Spacedust means that Mella told you the following:

Quote
Why is Apache trying to bind on port 80 rather than on 30080 as i run Hiawatha proxy?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #5 on: 2014-04-18, 21:23:54 »
I found this issue yesterday. In my investigate, nothing problem with port.

Possible something wrong with Apache. As I know, Apache release new version 1 week ago.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #6 on: 2014-04-20, 15:26:14 »
Now i have this issue again and here is the obvious root cause as pointed out by @Spacedust:
the file /home/apache/conf/defaults/init.conf contains WRONG port number:
Listen *:80
Listen *:443
Instead of
Listen *:30080
Listen *:30443
?
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #7 on: 2014-04-20, 15:43:10 »
Update 6.5.1.b because possible kloxo-phpcgi still using lxlabs as user. It's not enough and need root as user.

Don't forget run cleanup after update because many change related to web config and kloxo.init.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #8 on: 2014-04-20, 15:51:16 »
[root@mail ]# yum info kloxomr
Release     : 2014042001.mr
Repo        : installed
...
[root@mail ]#
« Last Edit: 2014-04-20, 15:53:15 by Mella »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd restart issue after an update and sh /script/cleanup
« Reply #9 on: 2014-04-20, 15:53:00 »
I didn't found this issue for VPS for this forum.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.03 seconds with 21 queries.

web stats analysis