Page MenuHomePhabricator

At the Installation end, when checking the "PHP object caching (APC, XCache or WinCache)", $wgScriptPath is set to empty string
Closed, ResolvedPublic

Description

I noticed what I regard a reproducible problem with the installer for fresh installations.

When checking the second option (2) the last question at the end of the installation procedure are

"Advanced configuration: Settings for object caching:"

  • (1) No caching (no functionality is removed, but speed may be impacted on larger wiki sites)
  • (2) "PHP object caching (APC, XCache or WinCache)" (checked)

$wgScriptPath is set to empty string in LocalSettings.php so that the installed wiki does not properly work.

I compared the resulting LocalSettings.php files for an installation with option (1) and (2) and found that

-$wgScriptPath = "/myserver";
+$wgScriptPath = ""; /* BUG WHEN SELECTING (2) DURING INSTALLATION */

-$wgMainCacheType = CACHE_NONE;
+$wgMainCacheType = CACHE_ACCEL; /* ok */


Version: 1.20.x
Severity: normal

Details

Reference
bz36003

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:21 AM
bzimport set Reference to bz36003.
bzimport added a subscriber: Unknown Object (MLST).

T. Gries: Do you by any chance know if that still happens when installing recent MediaWiki versions?

(In reply to Andre Klapper from comment #1)

Do you by any chance know if that still happens when installing
recent MediaWiki versions?

André: I did not go through fresh installations since a while.

So, if you want to close this issue, pls. go on. In case I see the problem again, it can easily be reopened.

saper claimed this task.
saper subscribed.

We now have Memcached setting instead and I can confirm $wgScriptPath does not get truncated (as of 1.27alpha)