Mediawiki 1.34 no encuentra Localsettings.php en Windows -Ubuntu

Mediawiki 1.34 no encuentra Localsettings.php en Windows -Ubuntu

Estoy intentando instalar Mediawiki 1.34 en Ubuntu 18.04.4 LTS en el subsistema Windows (10) para Linux a través de tarball; aparentemente todos los módulos funcionan bien: phpmyadmin, base de datos sql, apache2.http://localhost/mediawiki/Mw-configse ejecutó exitosamente y produjo un Localsettings.php válido

Intenté poner el directorio mediawiki en /var/www/html/ y alternativamente en /var/lib/ con un enlace simbólico a /var/www/html/ perohttp://localhost/mediawikisigue diciéndome: LocalSettings.php no encontrado.

Puse LocalSettings.php en todos los directorios que uno pueda imaginar sin éxito. También ejecutado compositor. Hay muchas otras sugerencias en varios sitios pero nada funciona. Para mi esta claro quehttp://localhost/mediawiki/index.phpestá abierto:


define( 'MW_ENTRY_POINT', 'index' );
/*define( 'MW_ENTRY_POINT', '/var/www/html/mediawiki/' );*/

// Bail on old versions of PHP, or if composer has not been run yet to install
// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
// phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound
require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) );

require __DIR__ . '/includes/WebStart.php';

$mediaWiki = new MediaWiki();
$mediaWiki->run();
________________________________________

Los valores que pude recuperar de index.php fueron los siguientes

eco ($_SERVER['SCRIPT_NAME']); /Mediawiki/index.php echo (nombredirección($_SERVER['SCRIPT_NAME'])); /Echo de Mediawiki (dirección); /var/lib/Mediawiki eco (ARCHIVO); /var/lib/Mediawiki/index.php echo (nombredir(ARCHIVO). '/incluye/PHPVersionCheck.php'); /var/lib/Mediawiki/includes/PHPVersionCheck.php ________________________________________ luego va a WebStart.php ________________________________________

// If no LocalSettings file exists, try to disnano WebStart.phpnano WebStart.phpplay an error page
// (use a callback because it depends on TemplateParser)
if ( !defined( 'MW_CONFIG_CALLBACK' ) ) {
        if ( !defined( 'MW_CONFIG_FILE' ) ) {
                define( 'MW_CONFIG_FILE', "$IP/LocalSettings.php" );
        }
        if ( !is_readable( MW_CONFIG_FILE ) ) {

                function wfWebStartNoLocalSettings() {
                        # LocalSettings.php is the per-site customization file. If it does not exist
                        # the wiki installer needs to be launched or the generated file uploaded to
                        # the root wiki directory. Give a hint, if it is not readable by the server.
                        global $IP;
                        require_once "$IP/includes/NoLocalSettings.php";
                        die();
                }

                define( 'MW_CONFIG_CALLBACK', 'wfWebStartNoLocalSettings' );
        }

¿Alguna idea?

Respuesta1

El problema esta resuelto. Era un problema de mayúsculas/minúsculas. WebStart.php busca LocalSettings.php mientras que el script de instalación entrega Localsettings.php

información relacionada