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

docs/manual/install.xml

index c617bf050ac877b083f4b82140b9014a55d638d0..389ac5bfb49b36fb9d5e112257f5155bcf439d37 100644 (file)
     <dd>
     <highlight>
 sudo dnf install httpd
-sudo service httpd start
+
+# Start service
+sudo systemctl start httpd
+
+# Stop service
+sudo systemctl stop httpd
+
+# Restart service
+sudo systemctl restart httpd
     </highlight>
 
-    <note type="warning">Older releases of these distros use
-    <code>yum</code> rather than <code>dnf</code>. See <a
+    <note type="warning">See <a
     href="https://fedoraproject.org/wiki/Apache_HTTP_Server">the
     Fedora project's documentation</a> for platform-specific notes.</note>
     </dd>
@@ -69,9 +76,16 @@ sudo service httpd start
     <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>