Restarting an Apache Server
Besides starting up the server if the server is already running you would want to first stop it and only then start it for that we use the restart property in the service command:
sudo service httpd start
we can restart the service using this command:
sudo service httpd restart
or stop it :
sudo service httpd stop
Video Transcript
00:00Okay, so again, so you don't have to worry about that right now
00:02We're gonna fix this issue and configure it later on in this
00:06session about HTTP D
00:08But what I do want you to do is jump right into your browser and just type in the actual IP address of your site
00:15Which is basically the IP address that you got for your hosting when you do that and you open it up
00:20You will see that you're gonna get this welcome screen from Apache
00:23Which is basically gonna tell you that this is just a testing page to show you that Apache has been installed
00:28You could even see here if you're the website administrator that you could create a new directory
00:33That will put a default site or you could go and change the default message
00:38What we don't really need to worry about that too much was we're gonna continue on and actually build out our site and configure
00:44It the way we want it to be
00:45All right
00:46So we saw in this video how to start our server and before I want to complete this
00:51I want to show you how do you stop the server? So again, you would type sudo service
00:56HTTP D and you would type here stop and
01:01What it will do is just stop our server
01:03And if we go back into the browser and click on refresh this time, you'll see that this time around
01:07It's not going to find anything. So we have the start command
01:10We have the stop command and we also have the restart command that which it basically will stop first our server and then restart it
01:18again in the next video what we're going to do is we're going to start creating an actual site page and we're gonna see
01:24The steps involved in creating a site page and the things you need to worry about and configure
01:29Before your site could actually work
01:31So the next video is going to be a little bit longer because we're going to walk through the process of the creation of a full
01:37Very simple web page and even try to connect it later on to a specific address
01:43Alright, so we're gonna see in the next video where we start that process of creating a real web page
