AuthFlux is a MediaWiki extension which enables the users registered on your forum to log into your wiki with the same username and password.
It is adapted from Auth_PHPBB 3.0.3 which is made by Nicholas Dunnaway. Check out his website!
I have tested it with MediaWiki 1.13.2 and FluxBB 1.2.20.
Download authflux-3.0.3.tar.gz.
Don’t forget to add this to your LocalSettings.php:
require_once( "$IP/extensions/AuthFlux/AuthFlux.php" );
$wgAuth_Config = array();
$wgAuth_Config['WikiGroupName'] = 'Wiki'; // Name of your FluxBB group
// users need to be a member
// of to use the wiki. (i.e. wiki)
// This can also be set to an array
// of group names to use more then
// one. (ie.
// $wgAuth_Config['WikiGroupName'][] = 'Wiki';
// $wgAuth_Config['WikiGroupName'][] = 'Wiki2';
// or
// $wgAuth_Config['WikiGroupName'] = array('Wiki', 'Wiki2');
// )
$wgAuth_Config['UseWikiGroup'] = false; // This tells the Plugin to require
// a user to be a member of the above
// FluxBB group. (ie. wiki) Setting
// this to false will let any FluxBB
// user edit the wiki.
$wgAuth_Config['UseExtDatabase'] = false; // This tells the plugin that the FluxBB tables
// are in a different database than the wiki.
// The default settings is false.
//$wgAuth_Config['MySQL_Host'] = 'localhost'; // FluxBB MySQL Host Name.
//$wgAuth_Config['MySQL_Username'] = 'username'; // FluxBB MySQL Username.
//$wgAuth_Config['MySQL_Password'] = 'password'; // FluxBB MySQL Password.
//$wgAuth_Config['MySQL_Database'] = 'database'; // FluxBB MySQL Database Name.
$wgAuth_Config['UserTB'] = 'flx_users'; // Name of your FluxBB user table. (i.e. users)
$wgAuth_Config['GroupsTB'] = 'flx_groups'; // Name of your FluxBB groups table. (i.e. groups)
$wgAuth_Config['PathToFluxBB'] = '../forum/'; // Path from this file to your FluxBB install.
// Local
$wgAuth_Config['LoginMessage'] = '<strong>You need a FluxBB account to login.</strong>
<a href="' . $wgAuth_Config['PathToFluxBB'] .
'register.php">Click here to create an account.</a>'; // Localize this message.
$wgAuth_Config['NoWikiError'] = 'You are not a member of the required FluxBB group.'; // Localize this message.
$wgAuth = new AuthFlux($wgAuth_Config); // AuthFlux Plugin.
Avec une installation par défaut de XFCE, les boutons Eteindre et Redémarrer ne sont pas actifs.

En effet, pour avoir le droit d’éteindre l’ordinateur, l’utilisateur doit être autorisé à exécuter la commande /usr/sbin/xfsm-shutdown-helper en temps que root (valable sous Debian, pour d’autres distributions, le chemin peut être différent).
Pour cela, il faut éditer le fichier /etc/sudoers. Il suffit d’y ajouter les lignes suivantes :
# User alias specification
User_Alias XFCE_SHUTDOWN_USERS = ALL
# Cmnd alias specification
Cmnd_Alias XFCE_SHUTDOWN_COMMAND = /usr/sbin/xfsm-shutdown-helper
# User privilege specification
XFCE_SHUTDOWN_USERS ALL = NOPASSWD: XFCE_SHUTDOWN_COMMAND
Voilà, les deux boutons sont maintenant activés !
Nous avons vu dans le billet précédent comment installer lighttpd avec PHP sous Debian.
Cette fois-ci c’est au tour de Symfony.
N’ayant aucune connaissance particulière avec Symfony, nous allons d’abord tester la sandbox afin de suivre le tutorial pour débutant.
Commençons par télécharger l’archive et l’extraire :
# cd /var/www
# wget http://www.symfony-project.org/get/sf_sandbox_1_1.tgz
# tar xpf sf_sandbox_1_1.tgz
# rm sf_sandbox_1_1.tgz
Ne pas oublier l’option p à la commande tar, pour conserver les permissions des fichiers lors de l’extraction.
Il suffit ensuite d’aller sur http://localhost/sf_sandbox/web/ pour admirer la page temporaire de Symfony. Si vous avez suivi le billet précédent, il ne devrait pas y avoir de problème particulier.
On verra la prochaine fois comment démarrer avec Symfony.
Grâce à Debian, c’est plus facile. C’est parti !
On commence par lighttpd :
# aptitude install lighttpd
Ensuite c’est au tour de php :
# aptitude install php5-cgi
Il faut maintenant activer le module fastcgi :
# lighty-enable-mod fastcgi
Il ne nous reste plus qu’à redémarrer lighttpd pour qu’il prenne en compte les changements :
# /etc/init.d/lighttpd force-reload
Et c’est tout !
Nous allons maintenant tester notre installation pour vérifier que tout marche bien.
Pour cela, nous allons créer le fichier /var/www/info.php contenant tout simplement :
Et finalement d’ouvrir dans son navigateur favori l’adresse suivante : http://localhost/info.php.
Une page présentant la version de PHP, ainsi que diverses informations devrait s’afficher. Tout marche bien.