Skip to content

Two permissions issues during Docker install #10

@vincebel7

Description

@vincebel7

During Docker installation (after following these steps), I came across two different permissions-related issues after clicking "Begin Installation" on the setup.php page.


Issue 1: Page displays error: Error opening output file. (This should never happen, we should have caught this before we got here)

Fix: docker exec into the resourcespace container and change perms: chmod 666 /var/www/html/include/config.php


Issue 2: Blank screen, and MySQL access denied error:

[Fri Sep 05 12:29:11.305824 2025] [php:error] [pid 18] [client 172.21.0.1:44412] PHP Fatal error:  Uncaught mysqli_sql_exception: Access denied for user 'resourcespace_rw'@'172.21.0.3' (using password: YES) in /var/www/html/pages/setup.php:539\nStack trace:\n#0 /var/www/html/pages/setup.php(539): mysqli_connect()\n#1 {main}\n  thrown in /var/www/html/pages/setup.php on line 539, referer: http://localhost/pages/setup.php

Fix: docker exec into the mariadb container and change perms:

GRANT ALL PRIVILEGES ON resourcespace.* TO 'resourcespace_rw'@'%' IDENTIFIED BY 'your_password';
FLUSH PRIVILEGES;

I ran into both issues on fresh installs on two different machines. I was able to get both installed+working after applying the two above fixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions