For anyone installing install Craft on WSL (Windows Services for Linux)...
WSL has enough traction with developers that I decided to take the dive, but I'm having trouble getting permissions straight with my Craft install.
Apparently, PHP doesn't have permission to chmod inside the project folders, which generates this error on login to Craft.
Failed to change permissions for directory "/mnt/c/Users/jimme/sites/mywebsite/craft/web/cpresources/6d799f01": chmod(): Operation not permitted
Caused by: yii\base\ErrorException chmod(): Operation not permitted in /mnt/c/Users/jimme/sites/jm/vendor/yiisoft/yii2/helpers/BaseFileHelper.php >at line 646
UPDATE:
I've modified my /etc/wsl.conf file to add support for linux metadata, which allows permissions to be set granularly for files in the windows filesystem. I've also changed changed the ownership to myuser:www-data and added group write perms. After making this change it fixed the above error but now I'm getting this on login...
HTTP 400 – Bad Request – yii\web\BadRequestHttpException Unable to verify your data submission.
in /mnt/c/Users/jimme/sites/jm/vendor/yiisoft/yii2/web/Controller.php
any ideas?