Once you completely provision the lamp stack, you can connect to the lamp stack as below
Then, we can connect the VM by use the script output
Then, we can refer 'https://blog.dxcloudsuite.io/guideline-connects-the-vm-aws/' for connecting to the VM
Then, we can get the URL from the template output for get more information about PHP
Then, we can connect the MySQL database by using the output
And then, we open the MySQL workbench, and then click the button '+'
Then, we choose 'Standard TCP/IP over SSH'
Then, we will be configure below
Then, we click the button 'Test Connection'
Then, we click the button OK
Finally, we can double click on the configuration that can connect the database