mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 05:37:32 +00:00
150aba0f91
Added sudo to lines where needed Changed "apachectl reload" to "sudo systemctl reload httpd.service" Added / to the end of /etc/httpd/conf.d Technical review completed and is now accurate.
27 lines
655 B
Text
27 lines
655 B
Text
[id='installing-httpd']
|
|
= Installing HTTPD
|
|
|
|
This procedure describes the steps to install Apache *HTTPD* on Fedora.
|
|
|
|
. Install *HTTPD* packages.
|
|
+
|
|
----
|
|
# sudo dnf install httpd -y
|
|
----
|
|
|
|
. Start the *HTTPD* service.
|
|
+
|
|
----
|
|
# sudo systemctl start httpd.service
|
|
----
|
|
|
|
[NOTE]
|
|
====
|
|
To enable auto start of *HTTPD* service at boot, execute the following command:
|
|
|
|
----
|
|
# sudo systemctl enable httpd.service
|
|
----
|
|
====
|
|
|
|
Navigate to link:http://localhost[http://localhost] to access the Apache test page. You may not be able to access the server from any other host. To access the server from other hosts, see link:#opening-firewall-ports[Opening firewall ports].
|