Bdzzld

Well-Known Member
Apr 3, 2004
412
5
168
Hello,

I've two cPanel servers, which both have WHM 58.0 (build 32) installed. They have an identical setup and identical hardware, but there's a difference in how httpd is started :

The first server :
Code:
>ps aux | grep nobody
nobody  11944  0.0  0.3 216516 26536 ?  SN  04:58  0:00 /usr/sbin/httpd
nobody  15464  0.0  0.3 216924 27092 ?  SN  05:05  0:00 /usr/sbin/httpd
nobody  15473  0.3  0.3 216944 27236 ?  SN  05:05  0:03 /usr/sbin/httpd
nobody  15474  0.0  0.3 216656 26604 ?  SN  05:05  0:00 /usr/sbin/httpd
nobody  17013  0.0  0.3 216520 26516 ?  SN  05:08  0:00 /usr/sbin/httpd
nobody  18643  0.0  0.3 216520 26488 ?  SN  05:12  0:00 /usr/sbin/httpd
nobody  18654  0.0  0.3 216520 26512 ?  SN  05:12  0:00 /usr/sbin/httpd
nobody  20357  0.0  0.3 216488 26328 ?  SN  05:18  0:00 /usr/sbin/httpd
nobody  20376  0.0  0.3 216520 26420 ?  SN  05:18  0:00 /usr/sbin/httpd
nobody  22193  0.0  0.3 216384 26180 ?  SN  05:20  0:00 /usr/sbin/httpd
root  22909  0.0  0.0 103312  892 ?  S  05:20  0:00 grep nobody
The second server :
Code:
>ps aux | grep nobody
nobody  2089  0.6  0.1 214176 15264 ?  SN  04:53  0:03 /usr/sbin/httpd -k start
root  7583  0.0  0.0 103312  884 ?  S  05:03  0:00 grep nobody
nobody  14415  0.0  0.2 214492 17068 ?  SN  02:43  0:05 /usr/sbin/httpd -k start
nobody  23593  0.0  0.1 214200 15300 ?  SN  04:21  0:00 /usr/sbin/httpd -k start
nobody  23626  0.0  0.2 214372 16316 ?  SN  04:22  0:00 /usr/sbin/httpd -k start
nobody  24771  0.1  0.2 214204 16300 ?  SN  04:24  0:04 /usr/sbin/httpd -k start
nobody  27918  0.1  0.2 214196 16312 ?  SN  04:34  0:02 /usr/sbin/httpd -k start
nobody  28046  0.0  0.2 214100 16208 ?  SN  04:35  0:00 /usr/sbin/httpd -k start
nobody  29252  0.2  0.2 214200 16264 ?  SN  04:37  0:03 /usr/sbin/httpd -k start
nobody  29253  0.0  0.2 214408 16452 ?  SN  04:37  0:00 /usr/sbin/httpd -k start
nobody  30767  0.0  0.2 214472 16388 ?  SN  04:43  0:00 /usr/sbin/httpd -k start
I was wondering why the "-k start" options are missing on the first server? Any ideas?

Thanks.
 

SysSachin

Well-Known Member
Aug 23, 2015
604
49
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

There is difference in easyapche version. I mean you are using easyapche 3 on your second server and easyapche 4 on your first server that's way showing different process.
 

NixTree

Well-Known Member
Aug 19, 2010
413
5
143
Gods Own Country
cPanel Access Level
Root Administrator
Twitter
I dont think that is the option as you can see the below server is having EA4 and still ahve -K option

[[email protected] ~]# /scripts/easyapache
EasyApache3 is not available when EasyApache4 is in effect.

[[email protected] ~]# ps aux |grep http
root 5827 0.0 0.0 112648 968 pts/0 S+ 15:55 0:00 grep --color=auto http
root 13014 0.0 0.0 264644 46276 ? SNs Oct27 0:30 /usr/sbin/httpd -k start
nobody 47425 0.1 0.0 265144 44596 ? SN 15:48 0:00 /usr/sbin/httpd -k start
nobody 47981 0.1 0.0 265236 44512 ? SN 15:48 0:00 /usr/sbin/httpd -k start
nobody 48087 0.1 0.0 265184 44748 ? SN 15:49 0:00 /usr/sbin/httpd -k start
nobody 49652 0.1 0.0 265368 44020 ? SN 15:50 0:00 /usr/sbin/httpd -k start
nobody 49660 0.1 0.0 265060 43524 ? SN 15:50 0:00 /usr/sbin/httpd -k start
nobody 58440 0.1 0.0 265052 43824 ? SN 15:50 0:00 /usr/sbin/httpd -k start

According to man page of httpd k is used for start/stop/restart etc and in my opinion it do not have any thing to do with EA3 or Ea4.

I will still wish to hear back from other techs as well about the same


===
NAME
httpd - Apache Hypertext Transfer Protocol Server

SYNOPSIS
httpd [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [ -e level ] [ -E file ] [ -k start|restart|graceful|stop|graceful-
stop ] [ -R directory ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ] [ -T ]

====
 

Bdzzld

Well-Known Member
Apr 3, 2004
412
5
168
@SysSachin: No, both servers had Apache/PHP (re)compiled via EasyApache4. There's no difference in version of EasyApache.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

It starts with the "-k" flag based on the following entry in /usr/local/cpanel/scripts/initsslhttpd2_4:

Code:
case $ARGV in
start|stop|restart|graceful|graceful-stop)
    $HTTPD -k $ARGV -DSSL
    ERROR=$?
    ;;
Could you verify both systems are using the same version of the OS? You can check this via:

Code:
cat /etc/redhat-release
If so, could you restart Apache via "/scripts/restartsrv_httpd" on the source server and verify it's listed as "/usr/sbin/http -k start" in the process list?

Thank you.
 

Bdzzld

Well-Known Member
Apr 3, 2004
412
5
168
@cPanelMichael :

Code:
[email protected] [~]# cat /etc/redhat-release
CentOS release 6.8 (Final)

[email protected] [~]# /scripts/restartsrv_httpd
Waiting for âhttpdâ
                   waiting for âhttpdâ

Service Status
        httpd (/usr/sbin/httpd) is running as root with PID 24867 (pidfile check method).

Log Messages
** suppressed **

httpd restarted successfully.

[email protected] [~]# ps aux | grep nobody
nobody    3062  0.0  0.3 218004 27808 ?        SN   10:20   0:00 /usr/sbin/httpd
nobody    3674  3.1  0.3 218036 27796 ?        SN   10:22   0:02 /usr/sbin/httpd
nobody    3938  0.0  0.3 217856 27580 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    3941  0.0  0.3 217872 27668 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    3942  0.0  0.3 217984 27680 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    3943  0.0  0.3 218008 27796 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    3944  0.0  0.3 218008 27648 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    3948  0.0  0.3 217872 27548 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    3958  0.0  0.3 218008 27648 ?        SN   10:23   0:00 /usr/sbin/httpd
nobody    4022  0.0  0.3 218008 27740 ?        SN   10:24   0:00 /usr/sbin/httpd
nobody    4972  0.0  0.3 217872 27428 ?        SN   10:24   0:00 /usr/sbin/httpd
nobody    4980  0.0  0.3 217872 27468 ?        SN   10:24   0:00 /usr/sbin/httpd
root      4989  0.0  0.0 103312   884 pts/0    SN+  10:24   0:00 grep nobody
Both servers are running the same version of CentOS.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here and we will update this thread with the outcome.

Thank you.