We can easily find Apache and php version installed on the server from command line and using a single command.
How to find Apache version
Run below command in terminal to find the Apache version installed on your Linux server.
On Debian / Ubuntu Linux Server
1 | apache2 -v |
On CentOS / RHEL / Fedora Linux Server
1 | httpd -v |
How to find PHP version
Run below command in terminal to find the PHP version installed on your Linux server.
1 | php -v |