how to connect VM with mysql in another VM with PHP / Apache?

1

Good evening, people. I am developing a system in php / mysql to improve my knowledge in the area. Knowing this, I now need to simulate a server by doing the following steps:

1 ° Create three virtual machines (with ubuntu OS in the virtual box) each with a distinct function, being the first one with the database, the second with the php codes and the third as the client / end user who will normally access the site / system created. the connection would be made this way: 1st Bank > 2 ° PHP > 3rd Client (one "chained" to the other). Result: I have already been able to install mysql on the first machine and put the codes in the 2nd. The problem that I did not find solution is still to make the connection of the 3rd machine (client) with the 2nd (of php).

Suggestions?

    
asked by anonymous 09.12.2017 / 22:44

0 answers