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

Asked

Viewed 223 times

1

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

1° Create three virtual machines (with the S.O Ubuntu, in the virtual box) each with a distinct function being, respectively, the first with the database, the second with the php codes and the third as the client/end user who will access normally the created site/system. the connection would be made this way : 1°Bank > 2°PHP > 3° Client (one "chained" to the other). Result: I was able to install mysql on the first machine and put the codes in 2°. The problem I haven’t found yet is to connect 3° machine(client) to 2°(php).

Suggestions?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.