Command:
Security advisor confirms that httpd needs to be restarted.
Environment Information
I'm not sure if
How can I find which version is already running before restarting httpd? If indeed the above command returns the one loaded in memory how can I check which version is going to run upon restart?
Code:
/usr/bin/needs-restarting
3343770 : /usr/sbin/httpd -k start
httpd -v
Server version: Apache/2.4.41 (cPanel)
Server built: Dec 25 2019 10:27:21
Environment Information
Code:
grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf ; httpd -v ; php -v ; mysql -V
/etc/redhat-release:CloudLinux release 7.7 (Valery Bykovsky)
/usr/local/cpanel/version:11.84.0.21
/var/cpanel/envtype:standard
CPANEL=release
Server version: Apache/2.4.41 (cPanel)
Server built: Dec 25 2019 10:27:21
PHP 7.3.13 (cli) (built: Dec 24 2019 15:12:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.13, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.13, Copyright (c) 1999-2018, by Zend Technologies
mysql Ver 15.1 Distrib 10.2.31-MariaDB, for Linux (x86_64) using readline 5.1
httpd -v
returns the running apache version loaded in memory or the latest installedHow can I find which version is already running before restarting httpd? If indeed the above command returns the one loaded in memory how can I check which version is going to run upon restart?