Last modified: 2011-02-26 12:40:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1379 - install can't find config/index.php
install can't find config/index.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.3.x
Other Linux
: Normal minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.wikimetamed.org
:
: 3815 9064 (view as bug list)
Depends on: 10541
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-21 21:33 UTC by Graham Chiu
Modified: 2011-02-26 12:40 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Graham Chiu 2005-01-21 21:33:28 UTC
I've just installed mediawiki on a 1and1.com account.  It installs fine when I
install into a subdirectory, but not when the domain itself points to that
directory.

What happens is that when I try to run the setup, it can't find
/config/index.php, and Apache offers me /config/index.html which is the
1and1.com control panel page.

So, to me it looks as though there is another directory "config" which the
installer is trying to read, and not the one in mediawiki distribution.

I changed the directory from "config" to "wikiconfig" and then I was able to
find /wikiconfig/index.php but then although it said it created the
LocalSettings.php file, it did not.  /wikiconfig is 777.
Comment 1 Brion Vibber 2005-01-22 08:19:17 UTC
You'll have to change the references to the 'config' subdirectory _in_ the 
installer as well, or it may write its output to the wrong directory.
Comment 2 Graham Chiu 2005-01-22 19:20:51 UTC
I tried changing every occurence of config to wikiconfig in the index.php file,
but it now won't complete.  Looks like it is saying there is now an error with
my mysql username or password, which are both correct.
Comment 3 Graham Chiu 2005-01-22 20:48:05 UTC
No matter, I tried it again this morning, and got it to complete in my
wikiconfig/ directory.

Still think you should consider changing the config directory name so that
others don't have this problem.
Comment 4 Zigger 2005-10-28 15:14:56 UTC
*** Bug 3815 has been marked as a duplicate of this bug. ***
Comment 5 Brion Vibber 2007-02-22 07:49:13 UTC
*** Bug 9064 has been marked as a duplicate of this bug. ***
Comment 6 André Mondri 2007-02-22 07:52:49 UTC
Same problem here - please change the Name to /install.
Comment 7 Brion Vibber 2007-02-22 07:56:09 UTC
Would be good to make this sort of thing easier to resolve.
Comment 8 Brion Vibber 2007-06-27 15:48:07 UTC
cf bug 5125

Might make sense to go ahead and rename to something like mw-config,
keeping the config dir for compatibility/habit. (It can just include() the
file from the other dir to run cleanly.)
Comment 9 Edward Z. Yang 2007-06-28 17:27:49 UTC
Brion, wouldn't /install make more sense? Although I can understand the initial reasoning to call it /config, the script does more than create the LocalSettings.php file: it also initializes the database. Maybe /mw-install would be better just to make sure we don't get any naming conflicts with that either.
Comment 10 Brion Vibber 2007-06-28 19:03:43 UTC
It's also used for upgrades, and may be used for other config in future.
Comment 11 Edward Z. Yang 2007-06-30 01:04:07 UTC
I've been looking over it, and it looks like it'll be a simple fix.

HOWEVER...

There's no way to do this cleanly in a patch, since the unified diff format can't keep track of file moves, etc: in short, it will destroy the history for /install. Is it possible for me to get Subversion commit access to fix this one?
Comment 12 Edward Z. Yang 2007-06-30 01:04:59 UTC
(In reply to comment #11)
> /install

Typo, that should be /config.
Comment 13 Robert Leverington 2007-08-26 11:49:56 UTC
Once I complete the back\front-end separation of the installation script it will be located at /maintenance/install (or maybe /maintenance/config)which shouldn't cause a problem.
Comment 14 Robert Leverington 2007-08-26 12:07:22 UTC
Maybe not as a sub folder of maintenance because I now realize that there is a .htaccess Deny from all.
Comment 15 Chad H. 2010-07-09 21:13:16 UTC
*brushes off the dust*

Hi folks :) With new-installer in place it's presumably a lot easier to revisit this now. As I mentioned in bug 5125 comment 11, we don't want to write LocalSettings.php to /config anymore. In fact, we're moving even more code out of it entirely. In the end, it's just going to have the simple entry point script.

Should be fairly trivial to rename /config to anything we'd like now. /mw-config probably wouldn't conflict with anything.
Comment 16 Chad H. 2011-01-21 23:40:50 UTC
Definitely doing this in 1.18 after the 1.17 release ships (I probably should've done this before branching, but too late now)

The following suggestions could work:
/mw-config/index.php
/mw-setup/index.php
Comment 17 Max Semenik 2011-02-21 08:07:45 UTC
(In reply to comment #16)
> Definitely doing this in 1.18 after the 1.17 release ships (I probably
> should've done this before branching, but too late now)

I don't think it's too late, we still haven't released RC1.
Comment 18 Max Semenik 2011-02-26 12:40:27 UTC
Fixed in r82845.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links