Topic on Manual talk:Installation guide

Two problems (LimitInternalRecursion & app.php not found) with new media wiki installation

7
Summary by Ciencia Al Poder

Please ask in Support Desk if you have problems

Athris (talkcontribs)

Hello,

on my server i create a subfolder calls "wiki" and a subdomain "wiki.mydomain.com" which point to the subfolder. I download the new 1.27.1 wiki from this site and install it. Now i have two big problems:

  1. Problem: If i upload files i select my file and press the upload button. Now the site refresh but the file is not uploaded. I get the same uploaded mask. If i select the file a second time the upload works.
  2. Problem: Sometimes if i want to save a article / site i get this error message: Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Now i look into my error logs and get these errors:

[Mon Sep 05 23:26:43 2016] [-:error] [pid 31729] [client 127.0.0.1:47076] [host wiki.lythoria.de] script '/is/htdocs/wp12677946_S31BDZISFX/www/wiki/images/app.php' not found or unable to stat

[Mon Sep 05 23:28:12 2016] [core:error] [pid 6346] [client 127.0.0.1:48430] [host wiki.lythoria.de] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Mon Sep 05 23:28:12 2016] [core:error] [pid 6346] [client 127.0.0.1:48430] [host wiki.lythoria.de] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Mon Sep 05 23:28:56 2016] [-:error] [pid 6780] [client 127.0.0.1:49060] [host wiki.lythoria.de] script '/is/htdocs/wp12677946_S31BDZISFX/www/wiki/images/app.php' not found or unable to stat

[Mon Sep 05 23:29:36 2016] [core:error] [pid 7402] [client 127.0.0.1:49684] [host www.wiki.lythoria.de] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Mon Sep 05 23:29:36 2016] [core:error] [pid 7402] [client 127.0.0.1:49684] [host www.wiki.lythoria.de] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

[Mon Sep 05 23:29:36 2016] [-:error] [pid 7403] [client 127.0.0.1:49686] [host www.wiki.lythoria.de] script '/is/htdocs/wp12677946_S31BDZISFX/www/wiki/images/app.php' not found or unable to stat

[Mon Sep 05 23:29:45 2016] [core:error] [pid 7505] [client 127.0.0.1:49770] [host wiki.lythoria.de] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I dont know why. The problems dont always occur, but very often. Can someone help me with these problems?

Additional information:

MediaWiki 1.27.1

PHP 5.6.25-he.0 (apache2handler)

MYSQL 5.6.31-77.0-log

ICU 52.1

Ciencia Al Poder (talkcontribs)

From the logs: app.php is not part of MediaWiki and from the logs apparently all requests are being originated from 127.0.0.1, so there seems to be a script or something on the server making such requests

The problem about loss of session data can happen if you changed $wgMainCacheType to use a caching system that doesn't persist across requests, most probably CACHE_ACCEL. CACHE_DB is usually the best option.

Athris (talkcontribs)

Okay app.php was a script, but i have still the problem with session lost. I try the follow options:

-CACHE_NONE

-CACHE_DB

-CACHE_ANYTHING

But the problem still exists if i save an article or upload a file.

Maybe a problem with the sub domain? :/

Ciencia Al Poder (talkcontribs)

Instead of changing $wgMainCacheType, change Manual:$wgSessionCacheType instead, setting it to CACHE_DB.

But yes, it may be a problem of the subdomain if there's some weird configuration redirecting pages between domains

Athris (talkcontribs)

I dont find it in my LocalSettings.php... so i copy it from DefaultSettings.php. Thats my conf:

<?php

if ( !defined( 'MEDIAWIKI' ) ) {

exit;

}

$wgSitename = "Lythoria Wiki";

$wgMetaNamespace = "Lythoria_Wiki";

$wgScriptPath = "";

$wgServer = "<nowiki>http://wiki.lythoria.de</nowiki>";

$wgResourceBasePath = $wgScriptPath;

$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";

$wgEnableEmail = false;

$wgEnableUserEmail = false;

$wgEmergencyContact = "";

$wgPasswordSender = "";

$wgEnotifUserTalk = false;

$wgEnotifWatchlist = false; 

$wgEmailAuthentication = false;

<nowiki>##</nowiki> Database settings (Remove)

$wgDBprefix = "wiki_";

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";

$wgDBmysql5 = false;

$wgMainCacheType = CACHE_NONE;

$wgSessionCacheType = CACHE_DB;

$wgMemCachedServers = [];

$wgEnableUploads = true;

$wgUseInstantCommons = false;

$wgShellLocale = "en_US.utf8";

$wgLanguageCode = "de";

$wgSecretKey = ""; //Remove

$wgAuthenticationTokenVersion = "1";

$wgUpgradeKey = ""; //Remove

$wgRightsPage = ""; 

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

$wgDiff3 = "/usr/bin/diff3";

$wgGroupPermissions['*']['edit'] = false;

$wgDefaultSkin = "splash";

wfLoadSkin( 'Splash' );

wfLoadExtension( 'Poem' );

wfLoadExtension( 'WikiEditor' );

// PHPBB User Database Plugin. (Requires MySQL Database)

require_once './extensions/Auth_phpbb.php';

// and more phpbb bridge stuff....

I delete the comments and security data like database connection.

Is this configuration okay?

Ciencia Al Poder (talkcontribs)

Looks sane, but I don't know other possible causes of this issue :(

You can set up a debug log and look at any possible message about sessions that may be suspicious. The log also prints cookies so you can see if any session cookie changes its value, which would be wrong.

Athris (talkcontribs)

Mhm i use the phpbb3 bridge.. is that a problem?