You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
I am using Windows 11 with WSL2, and I’ve encountered an issue with several PHP applications, including custom ones and PrestaShop. These applications are unable to write files or create directories in the Apache document root (/var/www).
For example, PrestaShop fails to write cache files, and this problem persists even after setting the directory permissions to chmod 777.
After troubleshooting, I was able to resolve the issue by executing the following command in the terminal:
chown -R apache:apache /var/www
This fixed the permission issues, allowing the applications to write to the document root as expected.
Upon reviewing the Dockerfiles for the PHP setups, I believe this command should be added to ensure that the document root has the correct ownership from the start: