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.

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.

Windows gets bash(ed) plus a full shot of Ubuntu

More importantly than bringing the shell over to Windows, developers will now be able to write their .sh Bash scripts on Windows, as well (or use Emacs to edit their code). Microsoft noted that this will work through a new Linux subsystem in Windows 10 that Microsoft worked on with Canonical.

Microsoft is bringing the Bash shell to Windows 10 | TechCrunch

So this if what all those Microsoft folks at Great Wide Open were so damn giddy about a couple of weeks ago. I must say I’m dumbfounded. Bash will roll out in a Windows 10 update this summer, sooner if you’re part of the Insider program.