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-04-20, 16:17:12

Author Topic: httpd.event lunched under root and apache user - web doesn't restart  (Read 5108 times)

0 Members and 1 Guest are viewing this topic.

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Hi all

Im a new user from Morroco. just discovered this panel  :o nad it's realy cool !

I have remark some problems



httpd.event is lunched with 2 different users is that normal?:


Quote
[root@hajjam ~]# ps -aux | grep http
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root       886  0.0  0.6  15192  4740 ?        Ss   12:14   0:00 httpry -d -q -P /var/run/httpry.pid -F -o /var/log/httpry/httpry.log
root       932  0.0  2.1 226152 16592 ?        Ss   12:14   0:00 /usr/sbin/httpd.event
apache     944  0.0  2.0 1225772 15960 ?       Sl   12:14   0:00 /usr/sbin/httpd.event
root      1355  0.0  0.0 103308   720 pts/0    D+   12:19   0:00 grep http


My second remark is when i lunch
sh /script/restart-web --force

it only stop the server and doesn't restart it.

Quote
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2017012502
   - Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: domain.net
C. Services:
   1. MySQL: MariaDB-server-10.0.29-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php-cli-5.3.3-48.el6_8.x86_64
        - Multiple:
          * php53m-5.3.29-1.ius.centos6
      - Used: php53m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.44-1.el6.x86_64
     - Nginx: nginx-1.11.9-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - 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: none
      - smtp: none
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: webalizer
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           768        387        380          4          0        222
   -/+ buffers/cache:        164        603
   Swap:          768        125        642
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs       40G   13G   28G  31% /


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


Thank you for your help

Best regards
« Last Edit: 2017-01-27, 15:56:06 by scorpus »
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd.event lunched under root and apache user
« Reply #1 on: 2017-01-27, 13:48:01 »
It's normal for httpd (aka apache). You can see the same as for nginx and php-fpm (for example). Running under root act as master/manager.

Inform here result for 'sh /script/restart-web --force; sh /script/restart-web'.

By the way, if possible install php56 for multiple php and use it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Re: httpd.event lunched under root and apache user
« Reply #2 on: 2017-01-27, 15:14:04 »
this is the result of 'sh /script/restart-web --force; sh /script/restart-web'


Quote
[root@hajjam ~]# ls -l /etc/init.d/httpd
-rwxr-xr-x 1 root root 3099 23 juil.  2015 /etc/init.d/httpd
[root@hajjam ~]# sh /script/restart-web --force; sh /script/restart-web
Stopping php53m-fpm (PHP Used):                            [  OK  ]
Stopping php53m-fpm (Multiple Php):                        [  OK  ]
Arrêt de httpd :                                           [  OK  ]

- For help, type '/script/restart-web [--help|-h]'
Arrêt de httpd :                                           [ÉCHOUÉ]

- For help, type '/script/restart-web [--help|-h]'

i will change php and check with php56m (sorry result is in French).


thank you
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd.event lunched under root and apache user
« Reply #3 on: 2017-01-27, 15:25:50 »
Set 'php used' to use 'php56m' in 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Re: httpd.event lunched under root and apache user
« Reply #4 on: 2017-01-27, 15:54:11 »
Php modification done:
Quote
[root@hajjam ~]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2017012502
   - Web: hiawatha-10.4.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: hajjam.net
C. Services:
   1. MySQL: MariaDB-server-10.0.29-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php-cli-5.3.3-48.el6_8.x86_64
        - Multiple:
          * php56m-5.6.30-1.ius.el6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.4.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.44-1.el6.x86_64
     - Nginx: nginx-1.11.9-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - 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: none
      - smtp: none
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. Stats: webalizer
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           768        416        351          3          0        227
   -/+ buffers/cache:        189        578
   Swap:          768         30        737
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/simfs       40G   13G   28G  31% /


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

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Result of 'sh /script/restart-web --force; sh /script/restart-web' :
Quote
[root@hajjam ~]# sh /script/restart-web --force; sh /script/restart-web
Stopping php56m-fpm (PHP Used):                            [  OK  ]
Arrêt de httpd :                                           [  OK  ]

- For help, type '/script/restart-web [--help|-h]'

- For help, type '/script/restart-web [--help|-h]'
[root@hajjam ~]#

http daemon still off... i have to reboot the vps ('openvz one')
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Try 'chkconfig httpd on; pkill -9 httpd; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Look like something wrong with 'php branch' version. Inform here 'dir /etc/yum.repos.d'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Quote
[root@hajjam ~]# chkconfig httpd on; pkill -9 httpd; sh /script/restart-web
Stopping php56m-fpm (PHP Used):                            [  OK  ]

- For help, type '/script/restart-web [--help|-h]'

Quote
[root@hajjam yum.repos.d]# dir /etc/yum.repos.d
CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Vault.repo  epel.repo  epel-testing.repo  mratwork.repo  vz.repo

Maybe because this weak openVZ vps...

i will try to reproduce the same installation in a dedicated server.
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
By default, Kloxo-MR 7.0 will install php54 packages instead php (in your case is php 5.3). Try remove/rename epel.repo dan epel-testing.repo in /etc/yum.repos.d.

Kloxo-MR already include epel.repo.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Thank you Mustapha.

I reinsalled this weekend the kloxo on a new fresh and clean platform and it's work perfectly.
it's kind of default package FAI issue...

i got some minor problems in trafic calculation. but it's not a problem. i update the panel this morning to Kloxo-MR 7.0.0.c-2017012901 and change php to 56m

I lunch sh /script/scavange as crontab hourly... and will see what's happen this week

Thank you for your huge work

Best regards
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.041 seconds with 19 queries.

web stats analysis