Skip to content

Document required write permissions for modules/ and public/ext/ - #31

Open
mickaelburggraeve9-wq wants to merge 1 commit into
phpvms:mainfrom
mickaelburggraeve9-wq:docs-modules-public-ext-permissions
Open

Document required write permissions for modules/ and public/ext/#31
mickaelburggraeve9-wq wants to merge 1 commit into
phpvms:mainfrom
mickaelburggraeve9-wq:docs-modules-public-ext-permissions

Conversation

@mickaelburggraeve9-wq

Copy link
Copy Markdown

Summary

The Permissions Errors section of the v8.x installation docs lists the directories that need to be writable by the webserver user (bootstrap, bootstrap/cache, storage/logs, storage/framework/{cache,session,views}), but doesn't mention modules/ and public/ext/, which are used by the addon/module system (Admin → Addons, App\Addons\AddonRegistry).

Without write access to these two directories, installing an addon fails with Failed to place addon: <name> — a silent File::moveDirectory() failure. Since these directories aren't part of the initial installer's requirements check (addons are installed after setup, on an already-running site), this is easy to miss and not obvious from the current docs.

Confirmed by tracing AddonRegistry::install()/update() in the phpvms/phpvms source, and reproducing the exact failure on a manually-deployed (non-Docker) install where modules/ and public/ext/ weren't owned/grouped for the webserver user. Note this doesn't affect the official Docker deployment path, since Dockerfile.prod runs everything as www-data from the start.

Change

Adds a short note + the two missing directories to the existing bullet list, same style as the surrounding content.

The addon/module system (Admin → Addons) requires the webserver user to
have write access to these two directories, but they aren't listed in
the Permissions Errors section alongside bootstrap/, storage/logs/, etc.
Installing an addon fails with "Failed to place addon: X" when this
isn't set up, which isn't obvious from the current docs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant