How to install Apache Server on Fedora

Apache server

One of the advantages that Gnu / Linux distributions have over other operating systems is their versatility between functions. A Linux distribution can work like a cool desktop operating system but also add server functions to it without reinstalling or messing up any programs; or turn it into a multimedia center and a server without paying a single penny for it and only two lines of code are enough. Next we explain how to install Apache Server, a program that will turn our Fedora into a server system with full server functions.

Fedora allows us to install Apache Server individually or together with other server programs

Fedora allows us to install pool of applications. This function is very interesting because we can add complete functions or uninstall them with just two lines of code. In the case of wanting to have a server we have to open the terminal and write the following:

su -c 'dnf group install "Web Server"'

But the most normal is that we just want to install Apache Server, in this case we have to introduce the following lines to install it:

su -c 'dnf install httpd'

That is how easy we can have Apache Server in any version of Fedora, both for desktop and official flavors, but there is a problem. Fedora has a default Firewall enabled that blocks the use of Apache Server. This can be solved by telling the Firewall which files to let run. To do this, also through the command console, we write the following:

su -c 'firewall-cmd --add-service=http --add-service=https --permanent'
su -c 'firewall-cmd --reload'

And if we want the changes to be permanent, we have to write the following:

su -c 'firewall-cmd --add-service=http --add-service=https'

And with this, we not only have Apache Server installed in our Fedora but also We will have it configured so that its use is safe and have no problem with security holes when creating server applications or any interim development interesting, right?


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.