Difference between revisions of "Mediawiki installation notes"

From Supercomputación y Cálculo Científico UIS
 
(41 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>  
 
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>  
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[Administración del SC3]]</div></p>
+
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[Wiki SC3]]</div></p>
 
 
 
<div class="col-md-14">
 
<div class="col-md-14">
     <div class="panel panel-darker-white-border">  
+
     <div class="panel panel-success-white-border">  
 
         <div class="panel-heading">
 
         <div class="panel-heading">
             <h3 class="panel-title">Installation notes </h3>
+
             <h3 class="panel-title">Installation notes</h3>
 
         </div>
 
         </div>
 
         <div class="panel-body">
 
         <div class="panel-body">
            <p>
 
            Basic configuration (taken form internet and edited):
 
  
            {{File|/var/www/mediawiki-folder/|<pre><nowiki>
+
Basic configuration (taken form internet and edited):
            # LDAP
 
            require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
 
            require_once 'includes/AuthPlugin.php';
 
            $wgAuth = new LdapAuthenticationPlugin();
 
            $wgLDAPDomainNames = array(
 
              'GridUIS',
 
            );
 
            $wgLDAPServerNames = array(
 
              'GridUIS' => '192.168.66.5',
 
            );
 
            $wgLDAPUseLocal = false;
 
            $wgLDAPEncryptionType = array(
 
              'GridUIS' => 'clear',
 
            );
 
            $wgLDAPPort = array(
 
              'GridUIS' => 389,
 
            );
 
            $wgLDAPProxyAgent = array(
 
              'GridUIS' => 'cn=nss,ou=admin,dc=uis,dc=edu,dc=co',
 
            );
 
            $wgLDAPProxyAgentPassword = array(
 
              'GridUIS' => 'griduis2o14sant',
 
            );
 
            $wgLDAPSearchAttributes = array(
 
              'GridUIS' => 'uid'
 
            );
 
            $wgLDAPBaseDNs = array(
 
              'GridUIS' => 'dc=uis,dc=edu,dc=co',
 
            );
 
            # To pull e-mail address from LDAP
 
            $wgLDAPPreferences = array(
 
              'GridUIS' => array( 'email' => 'mail')
 
            );
 
            # Group based restriction
 
            $wgLDAPGroupUseFullDN = array( "openldap_example_com"=>false );
 
            $wgLDAPGroupObjectclass = array( "openldap_example_com"=>"posixgroup" );
 
            $wgLDAPGroupAttribute = array( "openldap_example_com"=>"memberuid" );
 
            $wgLDAPGroupSearchNestedGroups = array( "openldap_example_com"=>false );
 
            $wgLDAPGroupNameAttribute = array( "openldap_example_com"=>"cn" );
 
            $wgLDAPRequiredGroups = array( "openldap_example_com"=>array("cn=ldapwiki,ou=groups,dc=example,dc=com"));
 
            $wgLDAPLowerCaseUsername = array(
 
              'openldap_example_com' => true,
 
            );
 
            </nowiki></pre>}}
 
  
            </p><p>LDAP Setup:</p><p>
+
{{File|/var/www/mediawiki-folder/|<syntaxhighlight lang="vim">
 +
# LDAP
 +
require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
 +
require_once 'includes/AuthPlugin.php';
 +
$wgAuth = new LdapAuthenticationPlugin();
 +
$wgLDAPDomainNames = array(
 +
  'GridUIS',
 +
);
 +
$wgLDAPServerNames = array(
 +
  'GridUIS' => '192.168.66.5',
 +
);
 +
$wgLDAPUseLocal = false;
 +
$wgLDAPEncryptionType = array(
 +
  'GridUIS' => 'clear',
 +
);
 +
$wgLDAPPort = array(
 +
  'GridUIS' => 389,
 +
);
 +
$wgLDAPProxyAgent = array(
 +
  'GridUIS' => 'cn=nss,ou=admin,dc=uis,dc=edu,dc=co',
 +
);
 +
$wgLDAPProxyAgentPassword = array(
 +
  'GridUIS' => 'griduis2o14sant',
 +
);
 +
$wgLDAPSearchAttributes = array(
 +
  'GridUIS' => 'uid'
 +
);
 +
$wgLDAPBaseDNs = array(
 +
  'GridUIS' => 'dc=uis,dc=edu,dc=co',
 +
);
 +
# To pull e-mail address from LDAP
 +
$wgLDAPPreferences = array(
 +
  'GridUIS' => array( 'email' => 'mail')
 +
);
 +
# Group based restriction
 +
$wgLDAPGroupUseFullDN = array( "openldap_example_com"=>false );
 +
$wgLDAPGroupObjectclass = array( "openldap_example_com"=>"posixgroup" );
 +
$wgLDAPGroupAttribute = array( "openldap_example_com"=>"memberuid" );
 +
$wgLDAPGroupSearchNestedGroups = array( "openldap_example_com"=>false );
 +
$wgLDAPGroupNameAttribute = array( "openldap_example_com"=>"cn" );
 +
$wgLDAPRequiredGroups = array( "openldap_example_com"=>array("cn=ldapwiki,ou=groups,dc=example,dc=com"));
 +
$wgLDAPLowerCaseUsername = array(
 +
  'openldap_example_com' => true,
 +
);
 +
</syntaxhighlight>}}
  
            {{File|/var/www/mediawiki-folder/|<pre><nowiki>
+
LDAP Setup:
            // Nombre del dominio
 
            $wgLDAPDomainNames = array(
 
              'GridUIS',
 
            );
 
  
            // FQDN del dominio
+
{{File|/var/www/mediawiki-folder/|<syntaxhighlight lang="vim">
            $wgLDAPServerNames = array(
+
// Nombre del dominio
              'GridUIS' => '192.168.66.5',
+
$wgLDAPDomainNames = array(
            );
+
  'GridUIS',
 +
);
  
            // Combinar con la base de datos local, dice que ponerlo en falso
+
// FQDN del dominio
            $wgLDAPUseLocal = false;
+
$wgLDAPServerNames = array(
 +
  'GridUIS' => '192.168.66.5',
 +
);
  
            // Tipo de encriptamiento
+
// Combinar con la base de datos local, dice que ponerlo en falso
            $wgLDAPEncryptionType = array(
+
$wgLDAPUseLocal = false;
            //'testADdomain' => 'tls', Deshabilitado por el moemnto
 
              'GridUIS' => 'clear',
 
            );
 
  
            // Usuario y contraseña usada para acceso de proxyagent
+
// Tipo de encriptamiento
            // Usar usuario restringido, no el administrador
+
$wgLDAPEncryptionType = array(
            $wgLDAPProxyAgent = array(
+
//'testADdomain' => 'tls', Deshabilitado por el moemnto
              'GridUIS' => 'cn=nss,ou=admin,dc=uis,dc=edu,dc=co',
+
  'GridUIS' => 'clear',
            );
+
);
            $wgLDAPProxyAgentPassword = array(
 
              'GridUIS' => 'griduis2o14sant',
 
            );
 
  
            // Filtro de busqueda
+
// Usuario y contraseña usada para acceso de proxyagent
            // These options are only needed if you want to search for users to bind with them. In otherwords,
+
// Usar usuario restringido, no el administrador
            // if you cannot do direct binds based upon $wgLDAPSearchStrings, then you'll need these two options.
+
$wgLDAPProxyAgent = array(
            // If you need a proxyagent to search, remember to set $wgLDAPProxyAgent, and $wgLDAPProxyAgentPassword.
+
  'GridUIS' => 'cn=nss,ou=admin,dc=uis,dc=edu,dc=co',
            // Anonymous searching is supported. To do an anonymous search, use SearchAttibutes and don't set a Proxy
+
);
            // agent for the domain required.
+
$wgLDAPProxyAgentPassword = array(
            $wgLDAPSearchAttributes = array(
+
  'GridUIS' => 'griduis2o14sant',
              'GridUIS' => 'uid'
+
);
            );
+
 
 +
// Filtro de busqueda
 +
// These options are only needed if you want to search for users to bind with them. In otherwords,
 +
// if you cannot do direct binds based upon $wgLDAPSearchStrings, then you'll need these two options.
 +
// If you need a proxyagent to search, remember to set $wgLDAPProxyAgent, and $wgLDAPProxyAgentPassword.
 +
// Anonymous searching is supported. To do an anonymous search, use SearchAttibutes and don't set a Proxy
 +
// agent for the domain required.
 +
$wgLDAPSearchAttributes = array(
 +
  'GridUIS' => 'uid'
 +
);
 
   
 
   
            // DN Base
+
// DN Base
            // Base DNs. Group and User base DNs will be used if available; if they are not defined, the search
+
// Base DNs. Group and User base DNs will be used if available; if they are not defined, the search
            // will default to $wgLDAPBaseDNs
+
// will default to $wgLDAPBaseDNs
            $wgLDAPBaseDNs = array(
+
$wgLDAPBaseDNs = array(
              'GridUIS' => 'dc=uis,dc=edu,dc=co'
+
  'GridUIS' => 'dc=uis,dc=edu,dc=co'
            );
+
);
  
            // No crear una cuenta para usuario si la cuenta existe en LDAP pero no en mediawiki
+
// No crear una cuenta para usuario si la cuenta existe en LDAP pero no en mediawiki
            // Default: false.
+
// Default: false.
            $wgLDAPDisableAutoCreate = array(
+
$wgLDAPDisableAutoCreate = array(
              'GridUIS' => true
+
  'GridUIS' => true
            );
+
);
            </nowiki></pre>}}
+
</syntaxhighlight>}}
  
            </p><p>Last version:</p><p>
+
Last version:
  
            {{File|/var/www/mediawiki-folder/|<pre><nowiki>
+
{{File|/var/www/mediawiki-folder/|<syntaxhighlight lang="vim">
            # LDAP
+
# LDAP
            require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php";
+
require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php";
            $wgAuth = new LdapAuthenticationPlugin();
+
$wgAuth = new LdapAuthenticationPlugin();
            $wgLDAPDomainNames = array("GridUIS");
+
$wgLDAPDomainNames = array("GridUIS");
            $wgLDAPServerNames = array("GridUIS" => "192.168.66.5");
+
$wgLDAPServerNames = array("GridUIS" => "192.168.66.5");
            $wgLDAPUseLocal = true;
+
$wgLDAPUseLocal = true;
            $wgLDAPEncryptionType = array("GridUIS" => "clear");
+
$wgLDAPEncryptionType = array("GridUIS" => "clear");
            # $wgLDAPPort = array('GridUIS' => 389);
+
# $wgLDAPPort = array('GridUIS' => 389);
            $wgLDAPProxyAgent = array("GridUIS" => "cn=nss,ou=admin,dc=uis,dc=edu,dc=co");
+
$wgLDAPProxyAgent = array("GridUIS" => "cn=nss,ou=admin,dc=uis,dc=edu,dc=co");
            $wgLDAPProxyAgentPassword = array("GridUIS" => "griduis2o14sant");
+
$wgLDAPProxyAgentPassword = array("GridUIS" => "griduis2o14sant");
            $wgLDAPSearchAttributes = array("GridUIS" => "uid");
+
$wgLDAPSearchAttributes = array("GridUIS" => "uid");
            $wgLDAPBaseDNs = array("GridUIS" => "dc=uis,dc=edu,dc=co");
+
$wgLDAPBaseDNs = array("GridUIS" => "dc=uis,dc=edu,dc=co");
            # To pull e-mail address from LDAP
+
# To pull e-mail address from LDAP
            $wgLDAPPreferences = array("GridUIS" => array( "email" => "mail"));
+
$wgLDAPPreferences = array("GridUIS" => array( "email" => "mail"));
            $wgLDAPDebug = 3;
+
$wgLDAPDebug = 3;
            //$wgLDAPDebug = 4; //for debugging LDAP
+
//$wgLDAPDebug = 4; //for debugging LDAP
            $wgDebugLogGroups["ldap"] = "$IP/extensions/LdapAuthentication/perrito.log" ;
+
$wgDebugLogGroups["ldap"] = "$IP/extensions/LdapAuthentication/perrito.log" ;
            # aparte
+
# aparte
            $wgShowExceptionDetails = true; //for debugging MediaWiki
+
$wgShowExceptionDetails = true; //for debugging MediaWiki
            $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";
+
$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";
            </nowiki></pre>}}
+
</syntaxhighlight>}}
  
  
            </p>
+
</div>
        </div>
 
 
     </div>
 
     </div>
 
</div>
 
</div>
 +
 +
 +
http://edutechwiki.unige.ch/en/VisualEditor
 +
https://www.mediawiki.org/wiki/Extension:VisualEditor
 +
http://www.nanotutoriales.com/como-instalar-nodejs-y-npm-en-debian-wheezy
 +
http://blog.skufel.net/2015/04/how-to-deploy-parsoid-for-mediawiki-on-opensuse-13-1-x64/

Latest revision as of 20:58, 23 May 2015


Logo_sc33.png

Installation notes

Basic configuration (taken form internet and edited):

File: /var/www/mediawiki-folder/
# LDAP
require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
require_once 'includes/AuthPlugin.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
  'GridUIS',
);
$wgLDAPServerNames = array(
  'GridUIS' => '192.168.66.5',
);
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array(
  'GridUIS' => 'clear',
);
$wgLDAPPort = array(
  'GridUIS' => 389,
);
$wgLDAPProxyAgent = array(
  'GridUIS' => 'cn=nss,ou=admin,dc=uis,dc=edu,dc=co',
);
$wgLDAPProxyAgentPassword = array(
  'GridUIS' => 'griduis2o14sant',
);
$wgLDAPSearchAttributes = array(
  'GridUIS' => 'uid'
);
$wgLDAPBaseDNs = array(
  'GridUIS' => 'dc=uis,dc=edu,dc=co',
);
# To pull e-mail address from LDAP
$wgLDAPPreferences = array(
  'GridUIS' => array( 'email' => 'mail')
);
# Group based restriction
$wgLDAPGroupUseFullDN = array( "openldap_example_com"=>false );
$wgLDAPGroupObjectclass = array( "openldap_example_com"=>"posixgroup" );
$wgLDAPGroupAttribute = array( "openldap_example_com"=>"memberuid" );
$wgLDAPGroupSearchNestedGroups = array( "openldap_example_com"=>false );
$wgLDAPGroupNameAttribute = array( "openldap_example_com"=>"cn" );
$wgLDAPRequiredGroups = array( "openldap_example_com"=>array("cn=ldapwiki,ou=groups,dc=example,dc=com"));
$wgLDAPLowerCaseUsername = array(
  'openldap_example_com' => true,
);

LDAP Setup:

File: /var/www/mediawiki-folder/
// Nombre del dominio
$wgLDAPDomainNames = array(
  'GridUIS',
);

// FQDN del dominio
$wgLDAPServerNames = array(
  'GridUIS' => '192.168.66.5',
);

// Combinar con la base de datos local, dice que ponerlo en falso
$wgLDAPUseLocal = false;

// Tipo de encriptamiento
$wgLDAPEncryptionType = array(
//'testADdomain' => 'tls', Deshabilitado por el moemnto
  'GridUIS' => 'clear',
);

// Usuario y contraseña usada para acceso de proxyagent
// Usar usuario restringido, no el administrador
$wgLDAPProxyAgent = array(
  'GridUIS' => 'cn=nss,ou=admin,dc=uis,dc=edu,dc=co',
);
$wgLDAPProxyAgentPassword = array(
  'GridUIS' => 'griduis2o14sant',
);

// Filtro de busqueda
// These options are only needed if you want to search for users to bind with them. In otherwords,
// if you cannot do direct binds based upon $wgLDAPSearchStrings, then you'll need these two options.
// If you need a proxyagent to search, remember to set $wgLDAPProxyAgent, and $wgLDAPProxyAgentPassword.
// Anonymous searching is supported. To do an anonymous search, use SearchAttibutes and don't set a Proxy
// agent for the domain required.
$wgLDAPSearchAttributes = array(
  'GridUIS' => 'uid'
);
 
// DN Base
// Base DNs. Group and User base DNs will be used if available; if they are not defined, the search
// will default to $wgLDAPBaseDNs
$wgLDAPBaseDNs = array(
  'GridUIS' => 'dc=uis,dc=edu,dc=co'
);

// No crear una cuenta para usuario si la cuenta existe en LDAP pero no en mediawiki
// Default: false.
$wgLDAPDisableAutoCreate = array(
  'GridUIS' => true
);

Last version:

File: /var/www/mediawiki-folder/
# LDAP
require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php";
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array("GridUIS");
$wgLDAPServerNames = array("GridUIS" => "192.168.66.5");
$wgLDAPUseLocal = true;
$wgLDAPEncryptionType = array("GridUIS" => "clear");
# $wgLDAPPort = array('GridUIS' => 389);
$wgLDAPProxyAgent = array("GridUIS" => "cn=nss,ou=admin,dc=uis,dc=edu,dc=co");
$wgLDAPProxyAgentPassword = array("GridUIS" => "griduis2o14sant");
$wgLDAPSearchAttributes = array("GridUIS" => "uid");
$wgLDAPBaseDNs = array("GridUIS" => "dc=uis,dc=edu,dc=co");
# To pull e-mail address from LDAP
$wgLDAPPreferences = array("GridUIS" => array( "email" => "mail"));
$wgLDAPDebug = 3;
//$wgLDAPDebug = 4; //for debugging LDAP
$wgDebugLogGroups["ldap"] = "$IP/extensions/LdapAuthentication/perrito.log" ;
# aparte
$wgShowExceptionDetails = true; //for debugging MediaWiki
$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";



http://edutechwiki.unige.ch/en/VisualEditor https://www.mediawiki.org/wiki/Extension:VisualEditor http://www.nanotutoriales.com/como-instalar-nodejs-y-npm-en-debian-wheezy http://blog.skufel.net/2015/04/how-to-deploy-parsoid-for-mediawiki-on-opensuse-13-1-x64/