SOLVED Does this Apache status look right?

rhenderson

Well-Known Member
Apr 21, 2005
784
2
168
Oklahoma
cPanel Access Level
Root Administrator
It's been a while since I had to look at the Apache status page, this just looks off to me. Switched to a new server and add Nginx.


Apache Status

Apache server status for xxxxx.xxxx.com
Server Version: Apache/2.4.52 (cPanel) OpenSSL/1.1.1m mod_bwlimited/1.4 mod_cpanel/1.4 Phusion_Passenger/6.0.12Server MPM: preforkServer Built: Mar 2 2022 02:02:47
Current Time: Monday, 07-Mar-2022 16:57:56 CSTRestart Time: Monday, 07-Mar-2022 08:48:55 CSTParent Server Config. Generation: 3Parent Server MPM Generation: 2Server uptime: 8 hours 9 minutesServer load: 0.54 0.34 0.33Total accesses: 17253 - Total Traffic: 84.9 GB - Total Duration: 17859277CPU Usage: u1356.58 s251.16 cu559.65 cs235.99 - 8.19% CPU load.588 requests/sec - 3.0 MB/second - 5.0 MB/request - 1035.14 ms/request1 requests currently being processed, 11 idle workers____.___.._.._..W.__............................................
................................................................
......................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

SrvPIDAccMCPUSSReqDurConnChildSlotClientProtocolVHostRequest
0-2319430/1459/1477_213.38165315983800.08095.218095.62xxx.xxx.xxx.43http/1.1xxxxx.com:81POST /wp-comments-post.php HTTP/1.1
1-2319540/1465/1485_208.70115915735730.07506.717506.99xxx.xxx.xxx.43http/1.1xxxxxxxx.com:444GET /picture.php?/1751/category/101 HTTP/1.1
2-2319670/1468/1483_184.712213314449330.05196.785196.96xxx.xxx.xxx.43http/1.1xxxxxx.com:444GET /picture.php?/2965/category/3 HTTP/1.1
3-2319730/1465/1485_211.0322176315338910.07427.217427.63xxx.xxx.xxx.43http/1.1xxxxxxxxxxxx.com:444GET /blog/page/5/ HTTP/1.1
4-2-0/0/232.0.001598956111896340.00.005.27::1http/1.1
5-221240/1408/1409_185.7635181814469960.05731.935731.93xxx.xxx.xxx.43http/1.1xxxxxxxxxxxx.com:444GET /blog/ HTTP/1.1
6-2319750/1464/1482_201.1832175915129090.08287.068287.50xxx.xxx.xxx.43http/1.1xxxxxxxxxxxx.com:444GET /blog/page/2/ HTTP/1.1
7-2319760/1464/1482_206.703528014853070.08473.818474.12xxx.xxx.xxx.43http/1.1xxxxxxxxxx.com:81GET /index.php?id_token=d2ba1aebb1f7fb6c97e30af6fbd7dae0&id_act

So the xxx.xxx.xxx.43 is an IP on the server and the xxxxxx.com domains are domains on the server, What looks odd to me is that one of the server's IP's is connecting to the sites, is this normal?
 
Last edited by a moderator:

rhenderson

Well-Known Member
Apr 21, 2005
784
2
168
Oklahoma
cPanel Access Level
Root Administrator
In doing some reading (I am not used to Nginx) I assume Apache is reporting the connections from the local server to Nginx. If that's the case other than something like
netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head via SSH is there away to see the ip connections Nginx is serving?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,632
363
cPanel Access Level
Root Administrator
Hey there! You'll want to make sure that mod_remoteip is installed on the server:


This is included in our documentation for Nginx here:


Can you try that and see if you get the IP addresses displayed how you expect?