Postingan

Menampilkan postingan dengan label WSL

Tutorial susah instalasi WSL2

selalu gunakan wsl2 kecuali sesuatu, dengan perintah "wsl --set-default-version 2". jalankan perintah install "wsl --install Debian" (defaultnya adalah ubuntu, tapi saya pilih debian). nantinya akan dimintai usr/pwd untuk distro. untuk jalaninnya pake "wsl" atau lebih spesifiknya "wsl --distribution Debian" untuk update/upgrade pake "wsl --update" atau pake "wsl --update --web-download" untuk download langsung dari git.  .wslconfig # Settings apply across all Linux distros running on WSL 2 [wsl2] # Sets amount of swap storage space to 8GB, default is 25% of available RAM # pake 33% RAM swap=5GB # Sets swapfile path location, default is %USERPROFILE%\AppData\Local\Temp\swap.vhdx swapfile=D:\\VMs\\WSL\\wsl2-swapfile.vhdx # Sets the VM to use two virtual processors processors=3 # Disable page reporting so WSL retains all allocated memory claimed from Windows and releases none back when free pageReporting=true # Turn on defa...

WSL php require vendor files, permission denied

 today, after i have done updating my windows. i continue working on my PHP project within WSL, before that i upgrade my composer with by using "composer selfupdate" command. because i need to install some package from composer, i run the `composer update` command. after it is finished, suddenly the app thrown some errors which says "cannot require path/to/vendor/file.php permission denied". then i check the permission of the files. all the files within vendor that have been updated by composer suddenly changed into "drwx------" or "drwxr-xr-x". that permission, basically says "only the user that can access it, group or other cannot". to solved that problem, i ran "sudo chmod -R go+rwx /path/to/my/project/vendor/". which mean "nah, i want to let group and other can access it".

WSL Snippets

 wsl -d NAMA_DIST untuk menjalankan linux dari terminal (contoh: wsl -d Debian).

Instalasi LAMP di WSL (Selamat Tinggal WAMP)