0
<https://askubuntu.com/posts/1219608/timeline>

I'm trying to install Mediawiki 1.34 via tarball - apparently all the
modules are working fine: phpmyadmin, sql database, apache2.
http://localhost/mediawiki/Mw-config ran successfully and produced a valid
Localsettings.php

I tried to put the mediawiki directory in /var/www/html/ and alternatively
in /var/lib/ with a symbolic link to /var/www/html/ but
http://localhost/mediawiki keeps telling me : LocalSettings.php not found.

I've put LocalSettings.php in all the directories one can imagine without
success. There are lots of suggestions on several sites but nothing works.
It is clear that http://localhost/mediawiki/index.php is opened:
------------------------------

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();
------------------------------

then goes to 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' );
    }

Reply via email to