Beside use command to check the version, you can use the php script to check the php version. Why that so? So application do need to verify by php first before allow you to install the apps.
$ar = split("[/ ]",$_SERVER['SERVER_SOFTWARE']);
$Apache_Version = $ar[$i];
$PHP_Version = $ar[$i];
$MOD_SSL_Version = $ar[$i];
$OPENSSL_Version = $ar[$i];
Echo "Apache Version: $Apache_Version<br>\n";
Echo "PHP Version: $PHP_Version<br>\n";
Echo "mod_ssl Version: $MOD_SSL_Version<br>\n";
Echo "OpenSSL Version: $OPENSSL_Version<br>\n";
When you restart the httpd, the error as below shwo
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
First, list out the process that hold port 80
netstat -lnp | grep :80
Then kill it
sudo kill -9 PID
Note: PID=process ID
You should be able to restart the httpd after kill the proccess. Usually is those NOBODY holding the process. If you are still unable to kill all the NOBODY proccess, it might have hardware issue from my experience .
(1) To install the SSL to the Apache server, first thing that need done is locate is the Virtual Host File. On most Apache servers the Virtual Sites are configured in the /etc/httpd/conf/httpd.conf file. However it can vary from server to server.
(2) Identify the secure Virtual Host for your site which is with port 443. Please make sure it in dedicated IP and not the share IP.
(3) Configure the Virtual Host For SSL as below.
< VirtualHost 192.168.0.1:443 >
< /VirtualHost >
(4)Save the changes to your configuration file
(5)Verify that the all the key,crt and etc is saved to the path you configured.