Skip to content

Error using generated LocalSettings.php file #16

Description

@suckatrash

I'm somewhat new to docker.. using docker 17.06.0-ce, I'm starting the container with:

docker run --name mediawiki --link mysql:mysql -p 8080:80 -v LocalSettings.php:/var/www/html/LocalSettings.php -d synctree/mediawiki

I've already run through the setup, connected to a mysql container and saved the LocalSettings.php file locally, then restarted the instance and copied the file over with the command above. I get these messages when the page loads:

Warning: require_once(/var/www/html/LocalSettings.php): failed to open stream: No such file or directory in /var/www/html/includes/WebStart.php on line 104

Fatal error: require_once(): Failed opening required '/var/www/html/LocalSettings.php' (include_path='.:/usr/local/lib/php') in /var/www/html/includes/WebStart.php on line 104

I can attach to the running container and verify that LocalSettings.php exists. The permissions look correct.

The line 104 from WebStart.php is: require_once MW_CONFIG_FILE;

Anyone seen this or know what's wrong?

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