02 Create Install LAMP On Virtual Machine Ubun
02 Create Install LAMP On Virtual Machine Ubun
02 Create Install LAMP On Virtual Machine Ubun
In this document you will learn how to create Ubuntu Virtual Machine using Azure Portal. After
Creation of Virtual Machine, we will configure LAMP Stack (Linux, Apache, MySQL, PHP) on VM and
try to host website on that.
Step 2: Click on + Create a resource -> Compute-> Ubuntu Server 18.04 LTS VM
Step 3: Enter Virtual Machine Basics details
Subscription: Choose your Subscription
Windows License: No
Subnet: new
Boot diagnostics: On
Identity: Off
Auto-Shutdown: Off
Backup: Off
Step 7: By default, RDP option like Windows not available with Ubuntu Virtual Machine so we will
use SSH for that. So, will require PuTTY software. Please download from here: https://putty.org/
Password: Demouser@123
sudo su
apt-get update
Step 12: Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated
"task" onto your system. Here we will install LAMP Stack (Linux, Apache, MySQL, PHP) using this
command.
tasksel
Step 13: Use Keyboard arrow for Up/Down & Select LAMP Server by pressing space.
Navigate to OK using TAB and hit Enter for continue.
cd /var/www/html
ls
nano default.php
Note: Inbound port rule – An inbound rule protects the network against incoming traffic from the
internet or other network.
Ex. 13.67.43.148/default.php
To Stop Virtual Machine:
Click on Stop button and click on Yes option in Overview
Enter resource group name to confirmation of virtual machine & click on Delete button.