Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Apache Document Root Seems to Lack Write Permissions #4

@sermagnus

Description

@sermagnus

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:

RUN chown -R apache:apache /var/www

Thank you for your attention to this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions