Diferència entre revisions de la pàgina «Mediawiki»

De Cacauet Wiki
Salta a la navegació Salta a la cerca
 
Línia 42: Línia 42:
 
**Add path
 
**Add path
 
**Install PHP libraries: pear, gmp, curl, mcrypt
 
**Install PHP libraries: pear, gmp, curl, mcrypt
 
 
The initial configuration (LocalSettings.php) that appears in that last link is something like (changing "www.test.com" and /path/to/some/directory):
 
<syntaxhighlight lang="php">
 
# Load the OpenID extension
 
require_once("$IP/extensions/OpenID/OpenID.php");
 
# Set the URL for the MediaWiki installation.
 
$wgTrustRoot="www.test.com";
 
# Allow all by default
 
$wgOpenIDConsumerDenyByDefault=false;
 
# Set the store type to file
 
$wgOpenIDConsumerStoreType="file";
 
# Set the location of where to store but not reachable by the web
 
$wgOpenIDConsumerStorePath="/path/to/some/directory/";
 
# Do the same stor thing for the OpenID server
 
$wgOpenIDServerStoreType="file";
 
$wgOpenIDServerStorePath="/path/to/some/directory/";
 
</syntaxhighlight>
 
 
You must create directories for authentication data outside the public_html folder and make them writeable.
 
 
  
 
=== OpenID solucions finals ===
 
=== OpenID solucions finals ===

Revisió de 17:37, 1 set 2011

TODO:


Installing FCKeditor with subversion[modifica]

Go to your extension folder:

cd path/to/extensions

Download the FCKeditor with Subversion:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/FCKeditor

Then edit the LocalSettings.php and add the line:

require_once("$IP/extensions/FCKeditor/FCKeditor.php");


OpenID[modifica]

Lets you login in several webs using the same account (OpenID, Google account, etc.).

Information sources:

To install it:

OpenID solucions finals[modifica]

OpenID ofereix algunes dificultats d'instal·lació a la Mediawiki.

He trobat solucions en aquesta article: Mètode general: http://eternallyoptimistic.com/2008/02/11/yah-about-that-mediawiki-openid-extension/

OJU: L'article és obsolet però més o menys s'entén. Cal baixar la darrera versió de openid-php des de http://www.janrain.com/openid-enabled

Al final de l'article diu que és més fàcil si copiem el directori "Auth" del openid-php a l'arrel de la Mediawiki. Així ja no tenim problemes de paths.

Pot ser que ens doni un error de Auth_OpenID_RAND_SOURCE. Si és així a mi m'ha funcionat aquesta solució: http://forum.civicrm.org/index.php?topic=5463.0