Now that the entire project is complete we can upload it to our live production server to do so.
Log into your land no dot com hosting account
click on the myelin node server and click the boot button to start the server.
If it's not already running
now we'll just need to give this about a minute or so now that the server is running we'll need to open
files Zilla with files Zilla open go to file site manager and click on the myelin node entry and click
connect enter your passphrase
now on our server we'll need to navigate to the HMO directory.
So this is the path to the HMO directory and click enter.
You may have a couple of files in your HMO directory you can go ahead and delete those
now on your local machine.
You're going to have to open the perfect cup directory in your web root folder.
So this is the path to mine and I'm going to highlight all the files so you can click the first one
and then hold shift and click the last file that'll highlight all of them and drag them over to your
server and the upload will begin
and once the upload is complete we'll go ahead and test to make sure that it's working.
So in your web browser type in your domain name
and at the end of the domain name just type in slash index dot BHP.
So as you can see the web page is loaded
and everything appears to be working correctly.
If you haven't registered a domain name you'll have to use the IP address of your server to get the
IP address go back to the node.
Click on the link nodes tab and you can copy the IP address corresponding to the Miwa node server over
here.
So remember that your IP would obviously be different than mine and you'll see it brings up the same
page
when we click on blog.
We have the logging and registration page.
Now we won't be able to register new users because we haven't imported the database onto our production
server.
So that's the next thing we'll need to do so we'll need to log in to BHP my admin on our server.
So just typing in my admin
and then log in is the route user and enter your password.
We'll need to create the perfect cup database on our production server before we import our members
table so I'll just go ahead and click on the database tab.
Now we're gonna type in perfect cup and choose UTF 8 Unicode S.I. is the collation
now click on the perfect cup database on the left column next open.
P My admin on your local machine and this will be done to the web or map menu BHP my admin
click on the perfect cop database on the left column and could be export button.
Just leave the default settings and click go
and now open the text file
copy all the content in the text file so right click and hit copy.
Now go back to the production server P HP my admin and click the import button or sorry click the Eskew
o button because we're gonna just paste the ESC you will into this text area so right click and hit
paste and then click go now click on the perfect cup database again and you'll see we have the members
table with the same with the test accounts we'd already created another database as it has been imported
now we'll need to update the database connection string on a few of our HP pages so on the P check dot
HP page just plug in the password for your production server for your production my est server and do
the same for add user
and send a message that BHP
okay will need to re upload these pages so just go back to files Zilla
and just please make sure you have saved the changes so once you inserted your password for your production
server make sure you save the changes
now in file Zilla we're going to re upload P check the IP HP send a message IP HP and add user dot BHP
you're going to be asked if you want to overwrite the existing files.
Just click OK
and now they've been overwritten
so that's an important consideration when you're testing your web page on your local machine.
You typically won't have a password for your to connect to your database but of course on your production
server security is very important and you will need to enter the password.
So because we've entered a password here this will no longer work on our local machine.
So when you're testing on your local machine remove the password to make this more efficient.
You can also cut your connection string out of each document and put it into an external file and then
use the p p require statement to included in each document you want to.
That requires a database connection.
But for now we'll just leave it as is.
OK.
So now we'll just pull the Web site backup
and we'll click on the blog or register a new user to make sure that the registration page is working
and connecting with our database
so the account was processed.
Let's go back to our database and make sure the record was added so there is Sarah Smith Sarah G.M.
dot com.
The encrypted password and now we'll log in so I'll go to the blog since we just registered we're automatically
already logged in.
Remember that the session variables were activated.
So I'm going to click the log out button click on the blog again.
And now it's asking me to log in
so everything is working click on the contact form and just send a test.
Email
and we can see that the message has been sent.
So this completes the project.
You can go through the web page and just make sure that everything is working correctly once you've
finished you can close the files in your text editor.
So we have quite a bit of things open here.
You can go ahead and close all this down make sure you've saved all your files
going to close down this web page closed down the BHP my admin on our local machine BHP my admin on
our server log out of your LAN node.
Oh sorry before you log out.
Make sure that you turn the server off.
This is assuming you finished testing the page
because you remember that your build whenever your server is running.
So we just had it on for a couple of minutes.
Make sure that you do wait until the system shut down shows a success alert
now that the server has been shut down and went to log out of the node goes down the browser and that's
it.
So hopefully you enjoyed the project and we'll see you in the next lesson.