Command

1) Jalankan Laravel di WSL

php artisan serve --host=0.0.0.0 --port=8000 

2) Jalankan Vite di WSL

Pastikan ada dua tanda -- sebelum opsi:

npm run dev -- --host 0.0.0.0 --port 5173 

3) Jalankan Next Js di WSL

 npm run start -- -H 0.0.0.0 -p 3000 

Php Wsl

Cek semua versi PHP yang terinstal

ls /usr/bin/php*

Pilih versi PHP aktif

sudo update-alternatives --config php

Lebih baru Lebih lama