I have stack.yml file as following:
# MediaWiki with MariaDB
# Access via "http://localhost:8080"
# (or "http://$(docker-machine ip):8080" if using docker-machine)
# After initial setup, download LocalSettings.php to the same directory as
# this yaml and uncomment the following line and use compose to restart
# the mediawiki service
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
docker-compose -f stack.yml up
Then I try to access the url: localhost:8080 and it connects successfully. And finally download the LocalSettings.php file
I put the file in the same directory as stack.yml file and then uncomment the line:
Now when I try to start the server
I get following error:
ERROR: for mediawiki_mediawiki_1 Cannot start service mediawiki: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"rootfs_linux.go:58: mounting \\\"/Users/paperless/Technology/mediawiki/LocalSettings.php\\\" to rootfs \\\"/var/lib/docker/overlay2/373a9bf779dd1706c36c29d74abc1ff893d298433f9baec8b0e02bde4e3a7ab1/merged\\\" at \\\"/var/lib/docker/overlay2/373a9bf779dd1706c36c29d74abc1ff893d298433f9baec8b0e02bde4e3a7ab1/merged/Users/paperless/Technology/mediawiki/LocalSettings.php\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
Then I changed
Now the container starts and am able to access UI at 8080. But it says not able to detect LocalSettings.php. So I restart all installation again. And same issue.
Also, in the ui, it says to place the LocalSettings.php in the same directory of index.php.
Where is the location of index.php on system?
We have to put LocalSettings.php in stack.yml dir? which I know.
or where index.php I am not able to find this file.
I copied the file from here https://hub.docker.com/_/mediawiki/and modified only the volume directory to actual dir/Users/paperless/Technology/mediawiki