I am trying to find the version of Apache that is installed on my server. I'm currently using Ubuntu 14.04.5. I have two different issues that keep occurring. When I run apache2 -v I get the error command not found. No matter what I do I can't get around this error. Trying to find the directory doesn't work either, as I get a no such file or directory found error. Any help would be greatly appreciated.
52 Answers
Installed: (none) means that there is no Apache installed on your server. You can install it with the following command:
sudo apt install apache2 3 In your case the first thing, you have to make sure that apache is install or not so
Run which apache2 to find the location of Apache. If it gives no output, then you don't have apache2 installed.
or you can check in
sudo /etc/init.d/apache2 start
You can also check using this command:
apt list --installed |grep apache2if none of them works then you have to install apache or tell us what makes you think that apache is installed in your system
2