how to find out the Apache server version installed in Ubuntu 14.04?
Asked
Active
Viewed 2e+01k times
3 Answers
119
Open the terminal and type:
apache2 -v
-v Print the version of apache2, and then exit.
karel
- 122,695
- 134
- 305
- 337
9
From the terminal you can enter: (lowercase -v)
apachectl -v
or to get even more compile info on Apache enter: (uppercase -V)
apachectl -V
of course as mention by @karel you can also use apache2 instead of apachectl... just giving an alternative. This worked for me in Ubuntu 18.04 and I'm using Apache 2.4.37.
Artur Meinild
- 31,385
god_is_love
- 191
1
if you have PHP installed with you apache2, you can find it in $_SERVER variable or with phpinfo() function:
<?php
var_dump($_SERVER);
phpinfo();
returns (on my computer):
'SERVER_SIGNATURE' => string '<address>Apache/2.4.29 (Ubuntu) Server …</address>
'SERVER_SOFTWARE' => string 'Apache/2.4.29 (Ubuntu)'
# and in phpinfo arrays:
apache2handler
Apache Version Apache/2.4.29 (Ubuntu)
bcag2
- 471
vand the other is an uppercaseVwhich could be different levels of verbosity forapachectl, but I can't find any indication these flags exist in the manpage. – Kristopher Ives Feb 13 '19 at 06:14