How to Start, Stop, or Restart Apache Server on Ubuntu?
Hello folks,
This post is focused on how to start, stop, status, or restart the Apache server on Ubuntu. If you want to see an example of the Ubuntu Apache restart command, then you are in the right place. In this article, we will implement a Ubuntu Apache start command. This article will give you a simple example of the Apache stop command on Ubuntu.
Here, i will give you list of commands where you can start, stop or restart apache server in ubuntu. so, let's see the simple example command of start, stop and restart apache2 server in ubuntu:
Ubuntu Start Apache Web Server:
I will give you simple two commands to start your apache web server in ubuntu. you can use any one. you can see the following commands:
sudo systemctl start apache2
OR
sudo service apache2 start
Ubuntu Stop Apache Web Server:
I will give you simple two commands to stop your apache web server in ubuntu. you can use any one. you can see the following commands:
sudo systemctl stop apache2
OR
sudo service apache2 stop
Ubuntu Restart Apache Web Server:
I will give you simple two commands to restart your apache web server in ubuntu. you can use any one. you can see the following commands:
sudo systemctl restart apache2
OR
sudo service apache2 restart
Ubuntu Status Apache Web Server:
I will give you simple two commands to restart your apache web server in ubuntu. you can use any one. you can see the following commands:
sudo systemctl status apache2
OR
sudo service apache2 status
I hope it can help you...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Install PHP 8.1 on Ubuntu 22.04?
- How to Install and Setup Supervisor in Ubuntu for Laravel?
- How to Check MySQL Version in Ubuntu?
- How to Check Ubuntu Version in Terminal?
- How to Upgrade from Ubuntu 18.04 to Ubuntu 20.04 LTS?
- How to Upgrade from Ubuntu 22.04 to Ubuntu 23.04?
- How to Upgrade PHP Version from 8.1 to 8.2 in Ubuntu?
- Ubuntu PHP bz2 Extension Install Commands Example
- How to Install PHP imap Extension in Ubuntu?
- How to Install PHP Curl Extension in Ubuntu?
- How to Increase memory_limit in PHP Ubuntu?
- How to Check Current PHP Version in Ubuntu?
- How to Install Apache PHP MySQL and Phpmyadmin on Ubuntu?