You can easily check the Apache version with the ‘phpinfo’ function. In order to do this, you will have to create a simple php file (for instance – phpinfo.php) in the following way:
<?php phpinfo(); ?>
After this, open this file in the browser in order to view the complete Apache / PHP information. The path to the file will be the following:
yourname.com/phpinfo.php
The Apache version will be displayed next to the ‘SERVER SOFTWARE’ variable present in the ‘ENVIORNMENT’ section of the file.