Closed jlahijani closed 5 years ago
OK I figured out the issue. It's related to enabling this feature: https://blogs.msdn.microsoft.com/commandline/2018/01/12/chmod-chown-wsl-improvements/
I think I did that once before, but I re-installed WSL recently and didn't enable that.
Hope this helps someone.
Hello,
I'm trying to get CraftCMS up and running in WSL. I ran the composer-based installer and I'm able to hit the welcome page just fine. However when going to /admin, I'm first presented with a bunch of permission errors, like this:
After refreshing about 10 or so times, it finally gets to the login screen but without any styles. I can see that it's trying to create files inside of the generated folders inside /web/cpresources/.
I tried chmoding the folders there with no luck either. I chmodded all the folders in CraftCMS to 777 but that didn't help either.
Attempting to login throws this error (perhaps related to the previous issue):
I know it's related to file/folder permissions, but giving everything 777 didn't help. I don't think this would be a WSL issue as I'm able to run ProcessWire and WordPress without issues.
I messed with ownership of files but no luck either. Usually I'm able to figure these kinds of issues out but I'm stumped on this one. I may just result to using a non-local server as WSL can be a little strange sometimes.
I tried also doing another installation but that didn't work either.
Any help would be appreciated.
Additional info