1. ubuntu+apache+php Environment (MySQL steps are omitted here)
Setting up the above development environment on Azure and building it on a local PC is the same step, see here for details .
2, from the external network access
Note that the premise of this step is that in the first section, you can already access your website in the virtual machine, if you have no graphical interface on the virtual machine on Azure, you can refer to here , Use a command-line browser to navigate through your helloworld.php to verify that the environment is building successfully.
Let's talk about what to set up from the extranet:
2.1 Select the virtual machine where the site is located, select the endpoint panel, if there is no 80 port, then add a 80 port endpoint (set to TCP type, the name is arbitrary) Note that the port number here and in the virtual machine in the Apache configuration of the port number consistent, My Ubuntu apache2 configuration is defined in/etc/apache2/ports.conf as 80, so fill in 80 ports here.
2.2 Return to the dashboard panel of the virtual machine where the site is located, find the DNS name, now if everything is set to success, then in the external network conditions, in the browser enter this DNS name should appear in your website homepage (this varies from person to person, the focus is still to find your documentroot, my DocumentRoot in /var/www/html This folder, under this folder there is a index.html and helloworld.php so I can access the "DNS name " from the extranet in the browser can also access " DNS name/helloworld.php")
3, Good luck!