MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: brianhill on 2017-03-11, 12:39:52

Title: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 12:39:52
Hi, after installing kloxo-mr in centos6.5. Apache stops after adding domain. It's working again after editing httpd.conf by enabling "LISTEN 80". But it stops again after adding any new domain, the httpd.conf will be rewrited and "LISTEN 80" is disable again.

I have sent you the server info through pm. Please help check how to fix this issue. Thank you so much.

httpd no listening sockets available shutting down
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 12:45:19
Inform here 'sh /script/sysinfo'.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 13:22:32
[root@ab ~]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017030803
   - Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
   - PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: ab.abcdg.com
C. Services:
   1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php56u-cli-5.6.30-1.ius.centos6.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.11.10-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.25-3.ius.centos6.x86_64
       - PHP Type: php-fpm_event (default)
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: awstats
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          7870        508       7361          0         24        161
-/+ buffers/cache:        322       7548
Swap:         2047          0       2047
E. Disk Space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       235G  2.3G  221G   1% /


*** Process Time: 00:00:00:16.16923 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 14:08:02
Try update with 'yum clean all; yum update -y; sh /script/cleanup'.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 14:42:48
Sme result after yum update.


[root@ab ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: no listening sockets available, shutting down
AH00015: Unable to open logs
                                                           [FAILED]

Below is the code i used to install the kloxo-mr.
cd /tmp
rm -f mratwork*
wget https://github.com/mustafaramadhan/kloxo/raw/rpms/release/neutral/noarch/mratwork-release-0.0.1-1.noarch.rpm --no-check-certificate
rpm -ivh mratwork-release-0.0.1-1.noarch.rpm
cd /
yum clean all
yum update mratwork-* -y
yum install kloxomr7 -y
sh /script/upcp
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 15:14:07
Try 'sh /script/fixweb; sh /script/restart-web'. But, make sure your Kloxo-MR using 'Kloxo-MR: 7.0.0.c-2017031002' or newer (test with 'sh /script/sysinfo'.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 15:24:35
My version is Kloxo-MR: 7.0.0.c-2017030803
It looks like my version is a littler older than Kloxo-MR: 7.0.0.c-2017031002. How can i upgrade to newer version?
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 15:27:03
Run 'yum clean all; yum update -y' not work?.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 15:44:36
After running update, the version is still Kloxo-MR: 7.0.0.c-2017030803
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 15:52:16
Open '/etc/yum.repos.d/mratwork.repo' and change 'mirrorlist=https://github.com/mustafaramadhan' to '#mirrorlist=https://github.com/mustafaramadhan' and then:
Code: [Select]
'rm' -f /var/lib/rpm/__db*
rpm --rebuilddb
yum clean all
yum update -y
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 16:15:07
The version is correct now. But after running "sh /script/fixweb; sh /script/restart-web", the httpd is still down.

*** Process for HTTPD service ***
  - Process: restart
Stopping httpd:                                            [FAILED]
Starting httpd: no listening sockets available, shutting down
AH00015: Unable to open logs
                                                           [FAILED]
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 16:55:34
Did you run 'sh /script/cleanup'?.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 17:55:59
Just tried running it, but keep getting below error, still not finished.

https://mirror.chpc.utah.edu/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 400 Bad Request"
trying other mirror
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 18:01:15
Just tried running it, but keep getting below error, still not finished.

https://mirror.chpc.utah.edu/pub/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 400 Bad Request"
trying other mirror
Not really issue if still continue to process.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 18:42:08
It's done. But the problem is same. Cloud you help check this issue by login my vps? I have sent the info before through PM. Thank you so much.
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 19:00:05
PM your server login.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-11, 19:09:03
pm sent
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-11, 19:53:14
Fix this issue with change 'apache' to 'nginx' and then change back to 'apache'.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-12, 13:23:35
i have tried this method on my other vps and it's not working. I have tried to switch between apache and nigix many times and nothing changes. httpd is still down. Please help check what else you have changed. PM with vps info as well.
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-12, 14:33:22
Also need change 'php-type' from 'php-fpm_event' ato 'suphp_event' and then change back. Make sure with 'sh /script/fixweb; sh /script/restart-web'.
Title: Re: httpd stops after adding domain
Post by: brianhill on 2017-03-12, 15:06:32
Getting this error after running "sh /script/fixweb; sh /script/restart-web". Is if fine?

Stopping php54m-fpm (PHP Used):                            [FAILED]
Starting php54m-fpm (PHP Used): [12-Mar-2017 04:17:40] ERROR: An another FPM instance seems to already listen on /opt/configs/php-fpm/sock/php-admin.sock
[12-Mar-2017 04:17:40] ERROR: FPM initialization failed
                                                           [FAILED]
Title: Re: httpd stops after adding domain
Post by: MRatWork on 2017-03-12, 15:26:54
There are something wrong with php-fpm for restart process. So, try 'pkill -9 php-fpm; sh /script/restart-web; sh /script/restart'.