How To Install Apache, MySQL, PHP (LAMP) Stack On Azure Linux VM

Prerequisites

  • Azure account.
  • PUTTY Software

Now let's get started with the following steps:

Connect to your Linux Virtual Machine

Open Putty software and type Linux Server IP Address and click Open button,

   

Then type username and password, now we connect our remote Linux server through Putty software.

  

Now we ready to Install Linux, Apache, MySQL, PHP (LAMP) Stack.

Step 1: Install Apache

First, we install Apache Web Server. To install Apache, type the following command into the Terminal:

$ yum install httpd


Step 2: Install PHP 7

Next, we install PHP 7. To install PHP, type the following command into the Terminal:

$ yum install php70w 

Step 3: Install MySQL 5.6

Then finally we install MySQL 5.6. To install MySQL, type the following command into the Terminal:

$ yum install mysql-server 

Now you have successfully configured LAMP setup on your Linux VM Server.

Read more articles on Azure: