Validating that our servers will restart every time our server reboots.
Validating that our servers will restart every time our server reboots. We will add httpd and mysqld to our chkconfig so that both will restart any time our server reboots.
Video Transcript
00:00All right, now that we have our lamp configured, more or less, we have a running server.
00:07The one thing that I want to make sure is if there's a hard reset or even a soft reset
00:11in our whole server, it needs to restart.
00:14We want to make sure that our server will run, and by default, it should, but we want
00:19to make sure that it does.
00:21To do that, I want to make sure that our HTTP D and also our MySQL will always turn
00:26on automatically when our server restarts.
00:30To do that, I'm going to call the sudo command, and I'm going to type a check config,
00:35and I'm going to HTTP D on, basically saying that whenever you're restarting,
00:41please start with you HTTP D, please start with you Apache.
00:46It's going to ask for a password again, and we're going to give him that password,
00:50and that's all we have to do to make sure that our HTTP D will restart.
00:54Now, the same thing we want to do for our check config,
00:57and we want to do my SQL D, and we want to set that to beyond,
01:04and I'm going to type an enter here, and there we go.
01:08Now, we also made sure that any time our server restarts,
01:12it's going to restart also our Linux restarts.
01:15It will start up our HTTP D, it's going to restart my SQL D, and that's it,
01:22and we're running and running.
01:23If we ever have another package, another something, another server,
01:26another something that has to start up as soon as our server starts,
01:30then we would add that as well.
01:31By the way, again, we're not doing that for PHP because PHP lives inside of our HTTP D.
01:37Our HTTP D is the one that starts up our PHP as well.
01:43That is about it about this.
01:45In the next few videos,
01:47we're going to talk a little bit about different configurations that you
01:50might need to change and configure to make sure PHP is actually working.
01:54We're going to see that in the following lesson.
