WebArea/Compat/MediaWiki/Fr

From TuxFamilyFAQ
Jump to navigationJump to search


Voir InstallMediawiki/Fr

"Your database_username is too long"

  • Connectez-vous à votre serveur
  • Allez dans le répertoire de votre wiki
  • Ouvrez le fichier ./config/index.php (ou installer.php pour MediaWiki 1.16.5 dans mon cas)
  • Cherchez "Username too long" dans votre fichier
  • Regardez la ligne au-dessus de votre réponse :

if( ($conf->DBtype == 'mysql') && (strlen($conf->DBuser) > 16) ) {

  • Augmentez le chiffre (16) dans mon exemple.

Et voilà, le tour est joué.

"Your session save path appears to be invalid or is not writable"

Lors de l'installation de MediaWiki, le message d'erreur suivant provoque l'échec de l'installation:

 Your session save path appears to be invalid or is not writable.
 PHP needs to be able to save data to this location in order for correct
 session operation. Please check that session.save_path in
 PHP.ini points to a valid path, and is read/write/execute for
 the user your web server is running under.

Il s'agit d'un problème dû aux vérifications effectuées par MediaWiki qui ne sont pas adaptées dans le cadre de l'hébergement fourni par TuxFamily.

Pour y remédier, il suffit d'éditer le fichier config/index.php et de supprimer la partie suivante (l.408 sur la version 1.10) :

# Warn the user if it's not set, but let them proceed
if( !$sessionSavePath ) {
    print "<li><strong>Warning:</strong> A value for <tt>session.save_path</tt>
    has not been set in PHP.ini. If the default value causes problems with
    saving session data, set it to a valid path which is read/write/execute
    for the user your web server is running under.</li>";
} elseif ( is_dir( $sessionSavePath ) && is_writable( $sessionSavePath ) ) {
    # All good? Let the user know
    print "<li>Session save path appears to be valid.</li>";
} else {
    # Something not right? Halt the installation so the user can fix it up
    dieout( "Your session save path appears to be invalid or is not writable.
        PHP needs to be able to save data to this location in order for correct
        session operation. Please check that <tt>session.save_path</tt> in
        <tt>PHP.ini</tt> points to a valid path, and is read/write/execute for
        the user your web server is running under." );
}

Après quoi, l'installation devrait se dérouler sans problème (n'oubliez pas de sauvegarder et de réenvoyer le fichier).