I am trying to transition my local PHP development from a Windows XAMPP stack to using the Windows Subsystem for Linux. Under WSL my website codebase is located on the windows filesystem and is accessible to the Apache webserver via /mnt/c/www/myweb.
I have inherited a codebase that sets session.save_path to the root of the website ie. /mnt/c/www/myweb and then runs session_start(). This worked fine under XAMPP but under WSL the session start command fails with a fatal exception and the error message "Warning: session_start(): Session data file is not created by your uid".
From the WSL command line I can create a file at /mnt/c/www/myweb and also appear to be able to run chmod commands.
Is this a limitation of the interface between WSL and the Windows filesystem or am I doing something else wrong?