am i correct in saying apache is not installed on my server
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Are you certain the package is called "apache" and not "apache2" or "httpd"?
Shouldn't you use 'apt-cache search httpd' or 'rpm -q httpd' or somesuch?
If your distro provides real package management (and I don't mean './configure && make install;') is there any valid reason not to use it?
systemctl list-units | grep apache (just realized it should be httpd)
nothing comes up but the command line
does this mean that apache is not installed?
if it isn't where/what is the best way to install it?
Code:
whereis apache
or
whereis apache2
if you receive a
Code:
apache:
or
apache2:
then it is not installed.
If you receive a path to where apache is then it is installed.
Code:
ls /etc/httpd
or
ls /etc/apache
or
ls /etc/apache2
will work too.
best way to install it is through your repo.
one should only install from source when there repo does not have it, or they want to modify it to their liking before it is installed. (general rule of thumb)
why would they be called different names...does it not matter?
I guess you would have to find out from the various develpers. Apache has been around for over 20 years and on many systems it is referred to as 'apache' whether it is apache1 or apache2 while on other systems the directories are referred to as apache2 if version 2+ is installed. The apache user:group is usually or at least often apache:apache but not always as Debian/Ubuntu have the user:group www-data:www-data for some reason. You just need to know which for the system you are using.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.