Skip to content

dmxmo/dev-wsl-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Development setup on Windows with WSL

  • Full-stack development environment with PHP, Node.js, MySQL, Apache
  • Multiple PHP versions with easy switching (5.6 through 8.4)
  • Virtual host system for unlimited test projects
  • Laravel-ready setup with instant project creation
  • Professional workflow with shortcuts and aliases
  • Vibe Coding using Claude Code
  • Team-ready configuration for consistent development

Setup Guide

  1. Part 1
  2. Part 2

Quick Reference:

  • Environment status: dev-status
  • Create site: quick-site mysite 8.4
  • Switch PHP: phpswitch 8.3
  • Switch Node: nvm use v20
  • View sites: sites

Clean up test site

sudo a2dissite test-site.test
sudo rm /etc/apache2/sites-available/test-site.test.conf
sudo rm -rf /var/www/projects/test-site
sudo sed -i '/test-site.test/d' /etc/hosts
sudo systemctl reload apache2

Daily Workflow Commands

Starting Your Development Day

# Check environment status
dev-status

# Navigate to projects
projects

# Start services (if needed)
apache-start
mysql-start

# Switch to preferred PHP version
phpswitch 8.4

# Check available sites
sites

# Create new site
quick-site newproject 8.4

About

Dev environment setup in Windows WSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published