There seem to be an issue, not sure if it is related to the new boot script or apache 2.4.20 (but i think its the boot script).
We have seen multiple reports where each page request presents a different output. For example:
- a user added a domain and hours later apache shows "Apache is working correctly", CTRL+F5 and the website is shown, CTRL+F5 and "Apache is working correctly", etc. Also
www.domain.ext and domain.ext show different output (
www.domain.ext shows the website and without www shows "Apache is working correctly", tested at the same moment).
- The apache status page shows server uptime 4 days X hours etc, CTRL+F5 and now the server uptime is 5 days Y hours, CTRL+F5 server uptime is 5 seconds.
Conclusion: each apache worker/thread is showing his own "reality". When all Apache processes are killed through killall -9 httpd and Apache is started again everything functions correctly. This issue is seen on multiple servers.
This output shows the existence of old httpd processes:
[root@<server> ~]# service httpd stop
Stopping httpd: [ OK ]
Apache is stopped now, but apparantly there are still processes, even old ones from 25 and 26 may (remember the 4 days and 5 days old status page?)
[root@<server> ~]# ps aux | grep http
root 2802 0.0 0.0 72920 2084 ? Ss May26 0:35 /usr/sbin/httpd
root 4399 0.0 0.0 72920 512 ? Ss May25 0:41 /usr/sbin/httpd
apache 7562 0.1 0.4 1734780 17476 ? Sl 13:43 0:00 /usr/sbin/httpd
apache 7621 0.3 0.5 1735084 20588 ? Sl 13:43 0:01 /usr/sbin/httpd
apache 9074 0.3 0.4 1734528 18300 ? Sl 13:47 0:00 /usr/sbin/httpd
apache 9513 0.2 0.5 1735192 22244 ? Sl 09:42 0:41 /usr/sbin/httpd
root 10944 0.0 0.0 103372 920 pts/1 S+ 13:50 0:00 grep http
Maybe DirectAdmin restarted apache directly, lets stop it again
[root@<server> ~]# service httpd stop
Stopping httpd: [FAILED]
Apache really seems to be stopped?
[root@<server> ~]# ps aux | grep http
root 2802 0.0 0.0 72920 2084 ? Ss May26 0:35 /usr/sbin/httpd
root 4399 0.0 0.0 72920 512 ? Ss May25 0:41 /usr/sbin/httpd
apache 7562 0.1 0.4 1734780 17592 ? Sl 13:43 0:00 /usr/sbin/httpd
apache 7621 0.2 0.5 1735084 20596 ? Sl 13:43 0:01 /usr/sbin/httpd
apache 9074 0.3 0.4 1734528 18316 ? Sl 13:47 0:00 /usr/sbin/httpd
apache 9513 0.2 0.5 1735192 22272 ? Sl 09:42 0:41 /usr/sbin/httpd
root 10972 0.0 0.0 103372 920 pts/1 S+ 13:50 0:00 grep http
Still the same processes, lets kill it all
[root@<server> ~]# killall -9 httpd
[root@<server> ~]# killall -9 httpd
httpd: no process killed
[root@<server> ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: AH00112: Warning: DocumentRoot [<subdomain>] does not exist
AH00112: Warning: DocumentRoot [<subdomain>] does not exist
[ OK ]
[root@<server> ~]# ps aux | grep http
root 11006 1.8 0.3 72920 13768 ? Ss 13:50 0:00 /usr/sbin/httpd
apache 11008 1.2 0.4 1734200 17040 ? Sl 13:50 0:00 /usr/sbin/httpd
apache 11017 0.5 0.3 1144376 14436 ? Sl 13:50 0:00 /usr/sbin/httpd
apache 11056 0.0 0.3 1013304 13904 ? Sl 13:50 0:00 /usr/sbin/httpd
apache 11078 0.7 0.3 1406520 14420 ? Sl 13:50 0:00 /usr/sbin/httpd
apache 11345 1.2 0.4 1734348 17360 ? Sl 13:50 0:00 /usr/sbin/httpd
root 11419 0.0 0.0 103368 912 pts/1 S+ 13:50 0:00 grep http
Only new processes, and the issue with different "worlds" is also fixed