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

Connect the web server to the database instance - Amazon Web Services (AWS) Tutorial

From the course: AWS: Disaster Recovery

Start my 1-month free trial

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