Difference between revisions of "Mediawiki installation notes"
From Supercomputación y Cálculo Científico UIS
| Line 1: | Line 1: | ||
= Installation notes = | = Installation notes = | ||
| + | |||
| + | <syntaxhighlight lang="php"> | ||
| + | <?php | ||
| + | $v = "string"; // sample initialization | ||
| + | ?> | ||
| + | html text | ||
| + | <? | ||
| + | echo $v; // end of php code | ||
| + | ?> | ||
| + | </syntaxhighlight> | ||
| + | |||
{{Test|prueba|texto}} | {{Test|prueba|texto}} | ||
| Line 5: | Line 16: | ||
Basic configuration (taken form internet and edited): | Basic configuration (taken form internet and edited): | ||
| − | {{File|/var/www/mediawiki-folder/| | + | {{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 | ||
| − | require_once 'extensions/LdapAuthentication/LdapAuthentication.php'; | ||
| − | require_once 'includes/AuthPlugin.php'; | ||
| − | $wgAuth = new LdapAuthenticationPlugin(); | ||
| − | $wgLDAPDomainNames = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPServerNames = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPUseLocal = false; | ||
| − | $wgLDAPEncryptionType = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPPort = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPProxyAgent = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPProxyAgentPassword = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPSearchAttributes = array( | ||
| − | |||
| − | ); | ||
| − | $wgLDAPBaseDNs = array( | ||
| − | |||
| − | ); | ||
| − | # To pull e-mail address from LDAP | ||
| − | $wgLDAPPreferences = array( | ||
| − | |||
| − | ); | ||
| − | # 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( | ||
| − | |||
| − | ); | ||
| − | |||
LDAP Setup: | LDAP Setup: | ||
| − | {{File|/var/www/mediawiki-folder/|<pre | + | {{File|/var/www/mediawiki-folder/| |
| − | + | <pre />}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | / | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Last version: | Last version: | ||
| − | {{File|/var/www/mediawiki-folder/|<pre | + | {{File|/var/www/mediawiki-folder/| |
| − | + | <pre />}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | / | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 15:44, 21 May 2015
Installation notes
<?php
$v = "string"; // sample initialization
?>
html text
<?
echo $v; // end of php code
?>
Test: prueba
texto
Basic configuration (taken form internet and edited):
File: /var/www/mediawiki-folder/
{{{2}}}
LDAP Setup:
File: /var/www/mediawiki-folder/
Last version:
File: /var/www/mediawiki-folder/
