Fedora Linux: Start / Stop / Restart Apache Server

To start, stop, or restart the Apache server on a Fedora Linux system, you can use the systemctl command, which is used to control the systemd system and service manager. Here are the steps:

  1. Open a terminal window.
  2. To start the Apache server, type the following command and press Enter:
sudo systemctl start httpd
  1. To stop the Apache server, type the following command and press Enter:
sudo systemctl stop httpd
  1. To restart the Apache server, type the following command and press Enter:
sudo systemctl restart httpd

If you want the Apache server to start automatically when your system boots up, you can enable the Apache service using the following command:

sudo systemctl enable httpd

To disable the Apache service from starting automatically, use the following command:

sudo systemctl disable httpd

Note that you need to have root privileges to run these commands. If you’re not logged in as the root user, you can run the commands with the sudo command.

Leave a Comment