]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Correct systemctl syntax
authorRich Bowen <rbowen@apache.org>
Tue, 26 May 2026 09:34:05 +0000 (09:34 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 26 May 2026 09:34:05 +0000 (09:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934634 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/install.xml

index 0ec766bf5f809a24d7f144e2312277c2b7973423..dfd4c20920636454e10532836f7669b5f63e1db4 100644 (file)
     <dt>Installing on Fedora/CentOS/Red Hat Enterprise Linux</dt>
     <dd>
     <highlight>
-sudo yum install httpd
-sudo systemctl enable httpd
+sudo dnf install httpd
+
+# Start service
 sudo systemctl start httpd
+
+# Stop service
+sudo systemctl stop httpd
+
+# Restart service
+sudo systemctl restart httpd
     </highlight>
 
-    <note type="warning">Newer releases of these distros use
-    <code>dnf</code> rather than <code>yum</code>. See <a
-    href="https://fedoraproject.org/wiki/Apache_HTTP_Server">the
+    <note type="warning">See <a
+    href="https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-apache-http-server/index.html">the
     Fedora project's documentation</a> for platform-specific notes.</note>
     </dd>
 
     <dt>Installing on Ubuntu/Debian</dt>
     <dd>
 <highlight>
-sudo apt update
 sudo apt install apache2
-sudo service apache2 start
+
+# Start service
+sudo systemctl start apache2
+
+# Stop service
+sudo systemctl stop apache2
+
+# Restart service
+sudo systemctl restart apache2
 </highlight>
 
     <note type="warning">See <a href="https://ubuntu.com/tutorials/install-and-configure-apache">Ubuntu's documentation</a> for platform-specific notes.</note>