Is there a way to check if Apache is installed on my Ubuntu 14.04 (Trusty Tahr) machine?
I am trying to install LAMP
on my Ubuntu installation.
Like many Linux-based applications, Apache functions through the use of configuration files. They are all located in the /etc/apache2/ directory. Here's a list of other essential directories: /etc/apache2/apache2.
Apache is available within Ubuntu's default software repositories. You can install it using conventional package management tools.
You can use the below commands to check if Apache is installed or not:
dpkg --get-selections | grep apache
or
apache2 -v
Command:
dpkg --get-selections | grep apache
Output:
apache2 install apache2-bin install apache2-data install apache2-utils install
Command:
apache2 -v
Output
Server version: Apache/2.4.18 (Ubuntu) Server built: 2019-10-08T13:31:25
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With