Putting the AMP into LAMP  in Linux Subsystem for Windows 10

Lets have a look on what we have on this article:

  • Setting up Apache 2 in Linux Subsystem for Windows 10
  • Setting up MySQL Server in Linux Subsystem for Windows 10
  • Setting up PHP in Linux Subsystem for Windows 10
  • Visual Studio Code and PHP Extensions
  • Few tweaks to work on PHP, Visual Studio Code with Linux Subsystem for Windows

Source: How to setup Apache, MySQL and PHP in Linux Subsystem for Windows 10

Hey, what good’s Ubuntu 18.04 for web dev without Apache, PHP, and MySQL? Getting the full LAMP stack up and running in WSL is a breeze and then you can get some work done. BTW, don’t forget Git.

Tips on getting the most out of Ubuntu 18.04 running in WSL on Windows 10

There are some good pointers and excellent tips in Web Development and Advanced Techniques with Linux on Windows (WSL) that are useful if you’re using WSL as part of your dev toolkit. Getting the same envs, including PATH, running across both systems is handy. It’s cool to be able to develop in Windows and test in Ubuntu without mucking about with VMs or ssh or anything.

Activating Windows Subsystem for Linux on Windows 10

On of the most interesting things about the Windows 10 Anniversary update is the availability of of a full Ubuntu Linux environment running native to Windows. The Windows Subsystem for Linux promises to provide for true cross platform development on Windows. Getting WSL up and running is pretty easy, just 5 quick steps.

  1. In Settings -> Updates& Security go to For Developers and select Developer Mode
  2. In Program Manager select Turn Windows Features On and Off and select Windows Subsystem For Linux.
  3. Reboot
  4. After the restart hit the Windows key and type bash to get started. The first time bash is run you’ll be prompted to accept the licensing and WLS will download and install.
  5. Enter a username and a password and you’re all set.

Now you’ve got Ubuntu Linux at your fingers tips. At the prompt try sudo apt-get update and sudo apt-get upgrade to bring Ubuntu up to date.

For getting started I’d recommend Fun with the Windows Subsystem for Linux on the Windows Developer blog. It’s a good article that’ll show you around WSL a bit.

Still to be determined: can I run my full LAMP stack on it so I can use it for real development.