4
1
I tried
it says:
When first run, the container will not contain a LocalSettings.php
But i don't understand how to get this contained LocalSettings.php
what do I type to get this file? and how to I replace it?
4
1
I tried
it says:
When first run, the container will not contain a LocalSettings.php
But i don't understand how to get this contained LocalSettings.php
what do I type to get this file? and how to I replace it?
3
The docker images from mediawiki docker uses Volumes
which is clearly given in the description on the page. In case of Docker images with volumes when you download the image you need to create a similar volume on your host too, because downloading a docker image doesn
t download the docker volume.
As it is stated on that page, you need to create a volume in the host and put that LocalSettings.php file and then create a container as:
docker stop $CONFIG_CONTAINER
docker run -v /data/wiki:/data -d nickstenning/mediawiki
0
This is old, although I didn't have much success with copying in a previous LocalSettings.php
. You just pass in the extra environment variables and a LocalSettings.php
will be created in the data directory. Then you just put your custom changes in conf/CustomSettings.php
Use the following environmental variables to generate a
LocalSettings.php
-e MEDIAWIKI_ADMIN_USER=
(defaults toadmin
; configures default administrator username)
-e MEDIAWIKI_ADMIN_PASS=
(defaults torosebud
; configures default administrator password)
https://github.com/wikimedia/mediawiki-docker
I at least imported a previous database to get the posts visible, using the generated config and just adding my custom settings.
1But where do I get this LocalSettings.php file from? – Jas – 2014-09-07T10:18:32.840
@Jas I dont have much idea about mediawiki, I guess this http://www.mediawiki.org/wiki/Manual:LocalSettings.php can help you.
– beginer – 2014-09-07T10:22:09.053