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".

Komentar

Postingan populer dari blog ini

Bagian-bagian Browser

kebiasaan menghapus kontak

Cara Build PHP 7.4.0alpha1 Dari Source Code Pada Ubuntu 16.04 LTS

Referensi "Ni No Kuni: Cross Worlds"