How to Start, Stop, or Restart Apache Server on CentOS
Stack How?
Stackorigin – The Community of Question and Answers Latest Articles
Read More About Python List Comprehension with examples
Python List Comprehension: Python List comprehension provides a much more short syntax for creating a new list based on the values of an existing list. Advantages of List Comprehension in Python: Time Efficient than loop Space Efficient than loop Needs ...
Do not accept an offer letter from companies.
Do not accept an offer letter from companies without verifying the following points. Designation Salary Details & CTC Distribution Leave Policies Working Hours & Days Medical Coverage/Insurance Probation Period Notice Period Benefits and Perks Bonus F&F Policy
How to call API using Ajax
AJAX stands for Asynchronous JavaScript and XML and its used for to make calls to the server to fetch some data. In this article, we will learn how to implement a simple API call using AJAX technology. How to use GET ...
How to Start, Stop, or Restart Apache Server on CentOS
Apache is a free and open-source cross-platform web server software. It is one of the most popular HTTP servers. Generally, it is used in combination with MySQL, PHP, and other scripting languages and forms a robust platform for the deployment of web applications.
Use the following command to start the apache web server on your system –
sudo systemctl start httpd
You can check the status, if the server is running properly or not by using –
sudo systemctl status httpd
Generally, you need to restart or reload your server after making changes in the configuration file. You can use the following command to restart the apache server on your system –
sudo systemctl restart httpd
You can also use the reload command to refresh the configuration files of the apache server. This command is faster and creates less disruption to the webserver –
If you want to stop the server then use –
sudo systemctl stop httpd
How to Start, Stop, or Restart Apache Server on CentOS
systemctl restart httpd.service
systemctl start httpd.service
systemctl stop httpd.service