Difference between revisions of "Mediawiki installation notes"

From Supercomputación y Cálculo Científico UIS
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<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><div class="btn btn-primary">[[Wiki_SC3|Wiki SC3]]</div><div class="col-md-14"><div class="panel panel-success-white-border"><div class="panel-heading">
 
 
<div class="btn btn-primary">[[Wiki_SC3|Wiki SC3]]</div><div class="col-md-14"><div class="panel panel-success-white-border"><div class="panel-heading">
 
 
=== Installation notes ===
 
=== Installation notes ===
 
</div><div class="panel-body">
 
</div><div class="panel-body">
 
Basic configuration (taken form internet and edited):
 
Basic configuration (taken form internet and edited):
  
{{Test|/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, ); }}
+
{{Test|/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:
 
LDAP Setup:

Revision as of 23:50, 22 May 2015

Logo_sc33.png

Installation notes

Basic configuration (taken form internet and edited):

Test: /var/www/mediawiki-folder/
{{{2}}}

LDAP Setup:

File: /var/www/mediawiki-folder/
{{{2}}}

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"; }}