[15:40:49] Hello! I have installed MediaWiki 1.36.2 using a GUI, downloaded LocalSettings.php and have put it into the root directory. However whenever I would try to open my wiki, it would throw me to the same exact "download your LocalSettings.php" page, instead of taking me to wiki. Here's what error.log says (nginx). PHP version is 7.3.31. What can [15:40:50] possibly be wrong? [15:41:21] https://dpaste.org/TqZT forgot to paste this line from error.log [15:44:53] Guest62: the LocalSettings.php file should be in /var/www [15:45:06] Please also check it's readable by the www-data user [15:45:09] oh let me try [15:45:33] Putting it in /var/www results in a `LocalSettings.php not found.` page [15:45:45] and I've set it to be 777 just in case, and it doesn't seem to work [15:47:06] Guest62: based on your log that should work [15:47:09] opening "https://domain.com/" results in a redirect to `https://domain.com/mw-config/index.php/index.php?title=Main_Page`, as well as an immediate file download [15:47:34] Is it possible to share domain in a PM [15:47:38] Yes, sec [15:49:25] I'm not sure why /var/www/LocalSettings.php wouldn't work [15:49:34] Given you've installed in /var/www [15:49:53] It was installed in /var/www/XXX [15:50:04] and current location of LocalSettings.php is /var/www/XXX/LocalSettings.php [15:50:14] Yes that should be right [15:50:47] It gave no errors during installation either, tables exist in a database, file contents look legit. But it just doesn't work [15:50:58] Given I get something at https://india.nk.ax/XXX [15:51:05] I think you're config might be messed up [15:51:25] Some of the urls don't look right [15:51:54] It looks as if there's two installations [15:52:04] Didn't manually edit it, however [15:52:14] But will try messing around with it, maybe something comes out of it [15:53:07] Could you run ls in /var/www [15:53:39] Yes, it lists all directories for my websites, as well as `india` [15:54:03] If that matters, it has `drwxr-sr-x` and I believe that is set recursively [15:54:13] And the only mediawiki files that exist are in the XXX folder [15:55:02] Yep. All "README.md", "index.php", "LocalSettings.php" and everything else is in that folder at `/var/www/india` [15:55:29] Could you share your local settings file with passwords removed [15:55:33] In a paste bin [15:55:51] second [15:57:03] https://dpaste.org/8Act [15:58:44] Script path should be /w/index.php [15:58:53] Also change your secret & upgrade keys [15:59:46] Changing it to `/w/index.php` makes `https://india.nk.ax/` redirect to `https://india.nk.ax/w/index.php/index.php?title=Main_Page` [16:00:06] That should be right [16:00:27] Oh no index.php is duplicated [16:00:51] Oh duh [16:00:56] It's just /w/ [16:01:27] For most installations [16:01:35] Seems to redirect to `https://india.nk.ax/w//index.php?title=Main_Page` and still 404. Makes me wonder if my nginx configuration is wrong [16:01:44] Guest62: hang on [16:01:54] Are you trying to serve out of the root [16:02:12] That's why this is so messy [16:02:28] Oh yeah I am [16:02:37] If you're serving out of the root then it's just / [16:02:44] Oh [16:02:47] But there's quite a few warnings against doing it [16:02:55] /part [16:03:22] Yaaaay, actually setting it to "" worked [16:03:36] setting it to "/" made it somehow redirect to `https://index.php/` [16:04:02] What are the warnings against doing it tho? [16:04:05] Please be aware of the warnings that you won't be able to create pages with some names [16:05:15] Oh well [16:05:31] I guess it should be fine for a-zA-Z0-9 stuff? [16:06:17] Yeah [16:06:23] Oh welp [16:06:25] It's only if file names match page names [16:07:15] A lot of thanks! :D Guess now I will do a fresh install, just to be safe haha [16:08:15] Goodbye everyone! [17:22:24] Nikerabbit: who is this question aimed at? https://phabricator.wikimedia.org/T204026#7415943 [17:32:40] Krinkle: Fundraising tech [17:33:16] ok. It seems the person who merged it, isn't on the task [17:35:49] Krinkle: yeah true. It was more of a status update. Our program manager will follow up with them. [17:35:57] ok :)