You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Francis Franck <fr...@gmail.com> on 2020/03/23 19:49:20 UTC

[users@httpd] Mediawiki 1.34 doesn't find Localsettings.php on Windows -Ubuntu

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

Re: [users@httpd] Mediawiki 1.34 doesn't find Localsettings.php on Windows -Ubuntu

Posted by Francis Franck <fr...@gmail.com>.
I don't see a reference to the file in any of the error messages .
Is there a way to track php traffic?

On Tue, 24 Mar 2020 at 14:02, Richard <li...@listmail.innovate.net>
wrote:

>
> > Date: Monday, March 23, 2020 20:49:20 +0100
> > From: Francis Franck <fr...@gmail.com>
> >
> > 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:
>
>
> Have you looked at your error log to see the path/location that the
> server is pointing to for this file, and whether other things (e.g.,
> your FollowSymLinks setting) are getting in the way of your server
> finding it?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Mediawiki 1.34 doesn't find Localsettings.php on Windows -Ubuntu

Posted by Richard <li...@listmail.innovate.net>.
> Date: Monday, March 23, 2020 20:49:20 +0100
> From: Francis Franck <fr...@gmail.com>
>
> 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:


Have you looked at your error log to see the path/location that the
server is pointing to for this file, and whether other things (e.g.,
your FollowSymLinks setting) are getting in the way of your server
finding it?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org