[07:35:11] Hi@Lcawte, look at this pastebin: https://pastebin.com/jMXS7jvs [09:33:53] How to re-generate automatically a Localsettings.php? [10:06:20] GiBy: mostly you don't. You can delete it and re-run the installer (Either via the web interface or via maintenance/install.php commmand line script) [14:24:00] hello everyone, [14:24:30] I've just started mediawiki in a docker and I don't manage to change its path. [14:25:29] It's running directly in the root-directory, i.e. http://localhost:8181/, but I want it to be running in the path /wiki, i.e. http://localhost:8181/wiki [14:27:43] !shorturl [14:27:43] To create simple URLs (such as the /wiki/PAGENAME style URLs on Wikimedia sites), follow the instructions at or try the new beta tool at . There are instructions for most different webserver setups. If you have problems getting the rewrite rules to work, see !rewriteproblem [14:28:06] If I change the LocalSettings.php and set $wgScriptPath = "/wiki"; it's broken in my browser. The initial load.php?... for stylesheets and js is somehow broken. [14:28:15] The anser varies a bit depending on your webserver (and i suppose which docker image you are using) [14:28:42] I don't care about short or long URLs. I care about a path for running it behind an nginx. [14:29:16] In that case, you still need to either modify the path inside docker, so mediawiki lives in a subdirectory called /wiki [14:29:19] There are multiple web-apps running and each of them must use a separate path. None of them must be in the root. [14:29:28] or you need to adjust the web server settings [14:29:46] (i mean, the web server in the docker, not your nginx) [14:30:11] ah. so this is sth. that doesn't work out of the box and I need to somehow tweak the docker. [14:30:18] or i guess, depending on how you are doing this, you could rewrite the path in your nginx config [14:31:50] Its possible the docker image you are using supports something. There is no official docker image for mediawiki, so i don't know what options whatever docker image you are using has [14:33:40] oh. ok. I think I'll give a custom apache-configuration a try. thanks a lot for your help. maybe I can get it running this way. [14:33:55] I mean the apache inside the docker. [14:59:50] I got it running: Copied /etc/apache2/sites-available/000-default.conf out of the running docker-container, added the line Alias /wiki /var/www/html under DocumentRoot and docker-mounted this file over the original. Then I added $wgScriptPath = "/wiki"; in the LocalSettings.php and now it works. [15:00:16] now, I need to get OpenID-Connect-authentication running. [15:00:22] I hope that's easier :-D [15:02:36] your docker image is definitely weird, because a standard installation assumes your MW files being in /w/ relative to the virtual host's directory [15:03:12] then you usually have a set of rewrite rules for /wiki/ to point at index.php [15:03:42] (for short URLs that is) [15:04:17] I use this: https://hub.docker.com/_/mediawiki/ [15:04:39] It's called "mediawiki - Official Image" [15:05:03] and it is pulled over 10 million times. [15:05:18] it seems to be the most popular mediawiki-docker-image. [15:05:26] lol, an unoffical, offical project [15:05:31] I've literally never heard of this before [15:05:52] maybe the docker-hub-guys maintain it. [15:06:26] hmm, at least some of the commits are by lego.ktm so maybe it is offical [15:06:39] it's this https://github.com/wikimedia/mediawiki-docker [15:07:41] MediaWiki: The software package where anyone can make a docker image [15:08:50] it would be really cool, if you could add a context-root-path by default. it's really painful, if there is none. it's sometimes really a nightmare to put sth. without a context-root-path behind a reverse-proxy-HTTP. [15:09:53] It seems like the main author of this docker image is Christian Heusel, who as far as i can tell is an arch linux developer and doesn't otherwise participate in mediawiki development [15:11:18] bawolff: I have no idea about docker but it does seem like it just… extracts with the usual path prefix (mediawiki-X.Y.Z that you rename to w if you follow the installation manual and leave defaults) stripped [15:11:49] I'd agree generally that it would be nice if there was a well maintained docker image that was maintained by some sort of official release team [15:11:50] I guess for simplification or something [15:12:22] The other popular docker image is Canasta, which does a lot of complicated stuff [15:56:04] Thanks a lot for all your help! [15:56:12] I got it running the way I want. [15:56:52] I have quite minimal requirements: docker behind nginx (with multiple other web-apps on the same base-URL with different path) and OpenID-Connect-authentication. This works. [15:57:04] Now, I'm going to bed. Sleep well! [15:57:13] Or enjoy the rest of your day :-D