sudo service apache2 restart for the way that's borrowed from Red Hat.

Answer from maco on askubuntu.com
🌐
nixCraft
cyberciti.biz › nixcraft › howto › apache › starting, stopping, and restarting apache 2 webserver command
Start / Stop and Restart Apache 2 Web Server Command - nixCraft
October 7, 2024 - You can either use service or /etc/init.d/ command as follows on Debian Linux version 7.x or Ubuntu Linux version Ubuntu 14.10 or older: # /etc/init.d/apache2 restart OR $ sudo /etc/init.d/apache2 restart OR $ sudo service apache2 restart
People also ask

How do I make Apache start automatically after a reboot?
Run `sudo systemctl enable apache2` on Ubuntu/Debian or `sudo systemctl enable httpd` on RHEL-based systems. To confirm, run `sudo systemctl is-enabled apache2` — it should output `enabled`.
🌐
linuxize.com
linuxize.com › home › apache › how to start, stop, and restart apache on linux
How to Start, Stop, and Restart Apache on Linux | Linuxize
Where are the Apache log files?
On Ubuntu/Debian, logs are stored in `/var/log/apache2/` (`access.log` and `error.log`). On RHEL-based systems, logs are in `/var/log/httpd/`. Use `journalctl` to view systemd service logs: `sudo journalctl -u apache2`.
🌐
linuxize.com
linuxize.com › home › apache › how to start, stop, and restart apache on linux
How to Start, Stop, and Restart Apache on Linux | Linuxize
How do I check if Apache is running?
Run `sudo systemctl status apache2` on Ubuntu/Debian or `sudo systemctl status httpd` on RHEL-based systems. You can also run `curl -I http://localhost` to verify Apache is responding to HTTP requests.
🌐
linuxize.com
linuxize.com › home › apache › how to start, stop, and restart apache on linux
How to Start, Stop, and Restart Apache on Linux | Linuxize
🌐
Apache Software Foundation
httpd.apache.org › docs › current › stopping.html
Stopping and Restarting Apache HTTP Server - Apache HTTP Server Version 2.4
In order to stop or restart the Apache HTTP Server, you must send a signal to the running httpd processes. There are two ways to send the signals. First, you can use the unix kill command to directly send signals to the processes. You will notice many httpd executables running on your system, but you should not send signals to any of them except the parent, whose pid is in the PidFile.
🌐
IONOS
ionos.com › digital guide › server › configuration › restart apache
How and when to restart Apache
October 27, 2023 - $ sudo service apache2 start # Apache start $ sudo service apache2 stop # Apache stop $ sudo service apache2 restart # Apache restartbash · The syntax is the same as the syntax used in Ubuntu and Debian systems.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to start, stop, or restart apache server on ubuntu
How to Start, Stop, or Restart Apache Server on Ubuntu
December 9, 2025 - The above command is a system-independent way to start the Apache2 service that works across various Linux distributions and init systems.
🌐
Linuxize
linuxize.com › home › apache › how to start, stop, and restart apache on linux
How to Start, Stop, and Restart Apache on Linux | Linuxize
March 3, 2026 - Manage the Apache web server with systemctl on Ubuntu, Debian, Fedora, and RHEL. Covers start, stop, restart, reload, status, enable on boot, and config testing.
Find elsewhere
🌐
Namehero
namehero.com › blog › how-to-restart-apache-on-linux
How To Restart Apache On Linux
November 6, 2024 - If Apache fails to restart, you must first look at the Apache logs to try and see if there’s a helpful error message to guide you. Unfortunately, there’s no standard location for Apache error logs. On my system, the location is: ... Depending on your Linux distribution, the version of Apache, and even how Apache was installed, the log files can be located in different directories.
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to restart apache on centos and rocky linux
How to Restart Apache on CentOS and Rocky Linux
December 17, 2025 - There are two main ways to restart Apache on CentOS or Rocky Linux: using the systemctl command or the apachectl command.
🌐
nixCraft
cyberciti.biz › nixcraft › howto › apache › how to: unix restart apache server command
How to: UNIX Restart Apache Server Command - nixCraft
April 24, 2023 - Dou want to restart the Apache ... or restart the Apache server version 2.x+ on Unix. You need to use the apachectl command to restart the Apache server....
🌐
Pi My Life Up
pimylifeup.com › home › how to start, stop, or restart apache on ubuntu
How to Start, Stop, or Restart Apache on Ubuntu - Pi My Life Up
April 23, 2023 - In this quick guide you will learn how to start, stop, restart or reload the Apache web server on the Ubuntu operating system.
🌐
Tutorial Republic
tutorialrepublic.com › faq › how-to-restart-apache-server-on-ubuntu.php
How to Restart Apache Server on Ubuntu
Topic: Ubuntu / LinuxPrev|Next ... the following commands. To restart Apache web server use the following command: sudo service apache2 restart ·...
🌐
1Gbits
1gbits.com › home page › blog › linux tutorials & commands › how to restart apache in linux, centos and debian
How to restart Apache in Linux, CentOS and Debian
February 23, 2025 - As you can see, the process to start or restart Apache in Linux webserver is not a very complicated task. You execute a few commands and the work gets done. Moreover, you can also use the reload command in place of the restart option. The choice is yours.
🌐
nixCraft
cyberciti.biz › nixcraft › howto › apache › restart httpd server command
Restart Httpd Server Command - nixCraft
October 16, 2022 - Type the following command under Debian / Ubuntu Linux: # /etc/init.d/apache2 restart # /etc/init.d/apache2 stop # /etc/init.d/apache2 start You can also use service command under Debian / Ubuntu Linux: # service apache2 restart # service apache2 stop # service apache2 start
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_enterprise_linux › 5 › html › deployment_guide › s1-apache-startstop
25.3. Starting and Stopping httpd | Deployment Guide | Red Hat Enterprise Linux | 5 | Red Hat Documentation
If you are using the default Listen directive in httpd.conf, which is port 80, you will need to have root privileges to start the apache server. ... You can also stop httpd using /sbin/service httpd stop. The restart option is a shorthand way of stopping and then starting the Apache HTTP Server.
🌐
LinuxTect
linuxtect.com › how-to-restart-stop-start-apache-web-server
How To Restart (Stop-Start) Apache Web Server? – LinuxTect
... The systemctl command is a defacto command used to manage Linux services. It is provided by all major Linux distributions like Ubuntu, Debian, Mint, Kali, CentOS, Fedora, RHEL, etc. The systemctl restart command can be used to restart the Apache webserver.
🌐
Quora
quora.com › How-do-you-start-stop-and-restart-Apache-on-CentOS-RHEL
How to start, stop, and restart Apache on CentOS/RHEL - Quora
Answer (1 of 4): Method 1: Restart Apache Server Using Systemctl Command Open a terminal window and enter the following: * sudo systemctl restart httpd.service The service should restart. Method 2: Restart HTTPD Server Using Apachectl Command Script Apache recommends using a control script t...
🌐
CyberPanel
cyberpanel.net › blog › linux-restart-apache-website
Linux Restart Apache Website – Your Complete Guide
February 2, 2026 - This in-depth guide will cover all these questions, and equip you with the core knowledge required to restart Apache with ease, getting you back to business with the least amount of downtime. Then, we will go over the tips, tools, and commands that you can use to quickly restart Apache on Linux systems, along with answers to several frequently asked questions on managing Apache servers.
🌐
Dev Lateral
devlateral.com › home › guides › apache › how to restart apache on ubuntu and centos
How to Restart Apache on Ubuntu and CentOS | Dev Lateral
November 8, 2023 - Learn how to restart Apache on Ubuntu and CentOS with this step-by-step guide, showing the exact commands you need, split by Apache and OS version.