From the course: AWS: Disaster Recovery
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Connect the web server to the database instance - Amazon Web Services (AWS) Tutorial
From the course: AWS: Disaster Recovery
Connect the web server to the database instance
- [Instructor] Our web server is just about ready to use at this point, but there were a couple of other things that we need to do. We still need to connect the web server to our database that we created in one of the previous videos. And we need to give it some application code so that the web server actually does something. So as you can see, I'm still logged into my web server. And the first thing that I'm going to do is to navigate to my var/www folder. And I'm going to create a new folder beneath that called inc. So let's go ahead and do that now. So now I'm in the www folder and I'm going to use the mkdir command. And I'm going to create a new folder called inc. And I'll go ahead and switch to the inc folder. So now I'm going to create a new file within that folder called dbinfo.inc. And then I'll use the nano editor to edit the contents of this file. So what I've done is I've added some PHP code to the nano…
Contents
-
-
-
-
-
-
-
-
(Locked)
An Introduction to the demo environment1m 19s
-
(Locked)
Create a VPC with public and private subnets2m 49s
-
(Locked)
Create an additional subnet2m 48s
-
(Locked)
Create a VPC security group for the web server2m 59s
-
(Locked)
Create a VPC security group for the database2m 9s
-
(Locked)
Create a database subnet group1m 41s
-
(Locked)
Create a database instance3m 16s
-
(Locked)
Create an EC2 instance3m 26s
-
(Locked)
Install an Apache web server3m 42s
-
(Locked)
Set file permissions on the Apache web server3m 13s
-
(Locked)
Connect the web server to the database instance4m 4s
-
(Locked)
-
-
-