WSL & PHP

June 11, 2020

Windows set up

  • Search the windows features
  • Check a windows subsystem for Linux
  • If you want to use WSL2, just enable a Virtual machine platform

Mount network drive in WSL

  • To check network drive name (window) : wmic path win32_mappedlogicaldisk
  • Mount to WSL : sudo mount -t drvfs '\\[path]\[path]..' /mnt/[name]

Set up Ubuntu

  • Version check : lsb_release -a
  • Upgrade with remove package if needed : sudo apt full-upgrade
  • Count files : ls | wc -l

Install PHP, apache, laravel

sudo apt install -y php libapache2-mod-php
php --ini
sudo apt install -y composer
composer global require laravel/installer
composer global about

Start laravel

composer create-project --prefer-dist laravel/laravel $NAME
php artisan serve