Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
Install MediaWiki: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
(No difference)
|
Latest revision as of 01:20, 19 September 2013
Obtain and Install Mediawiki
- Find latest Mediawiki downloads here: http://www.mediawiki.org/wiki/Download
- Find latest Ldap Authentication Extension downloads here: http://www.mediawiki.org/wiki/Special:ExtensionDistributor/LdapAuthentication
- cd /usr/src
- in a separate browser, navigate to http://www.mediawiki.org/wiki/Special:ExtensionDistributor/LdapAuthentication, <= choose a version, then open the snapshot url in lynx:
- lynx https://codeload.github.com/wikimedia/mediawiki-extensions-LdapAuthentication/legacy.tar.gz/REL1_21 <= Download file as mediawiki-extensions-LdapAuthentication.tar.gz
- tar zxf mediawiki-extensions-LdapAuthentication.tar.gz
- wget http://download.wikimedia.org/mediawiki/1.21/mediawiki-1.21.1.tar.gz
- tar zxf mediawiki-1.21.1.tar.gz
- mkdir /Computerisms/sites/wiki.computerisms.com
- cp -r mediawiki-1.21.1/* /Computerisms/sites/wiki.computerisms.com/
- cp -r /usr/src/wikimedia-mediawiki-extensions-LdapAuthentication-013532d /Computerisms/sites/wiki.computerisms.com/extensions/LdapAuthentication
- chown -R wiki:wiki /Computerisms/sites/wiki.computerisms.com/
- find /Computerisms/sites/wiki.computerisms.com/ -type d -exec chmod 2750 {} \;
- find /Computerisms/sites/wiki.computerisms.com/ -type f -exec chmod 0640 {} \;
- chmod 2750 /Computerisms/sites/wiki.computerisms.com/
Configure Postgres
- echo "wikitmp wiki postgres" >> /etc/postgresql/9.1/main/pg_ident.conf
- sed -i 's/peer/peer map=wikitmp/' /etc/postgresql/9.1/main/pg_hba.conf
- /etc/init.d/postgresql restart
Configure Apache
- vi /etc/apache2/sites-available/wiki.computerisms.com.conf
- mkdir /var/log/apache2/wiki.computerisms.com
- chown root:adm /var/log/apache2/wiki.computerisms.com/
- a2ensite wiki.computerisms.com.conf
- /etc/init.d/apache2 restart
- samba-tool dns add houselian computerisms.com wiki A 192.168.26.10
Configure Mediawiki
- navigate to https://wiki.computerisms.com and click the link to set up the wiki
- Select Languages=>Continue=>Continue
- Select PostgreSQL=>leave host blank=>leave port blank=>Set Database Name helpwiki=>leave schema as mediawiki=>leave database username as postgres=>leave database password blank=>continue
- Deselect "use the same account..."=>enter username as wiki=>Enter password as DBMinion=>Select create account=>continue
- For name of wiki enter ComputerismsHelpPages=>Set project namespace to same
- Under Administrator Account enter name administrator=>enter arbitrary password that you remember=>set email to bob.miller@computerisms.com=>more options=>continue
- Select Authorized Editors Only=>disable email=>enable file uploads=>set logo=>Select PHP object caching=>continue=>continue=>continue
- open LocalSettings.php in notepad and highlight/copy it to start the following file:
- vi /Computerisms/sites/wiki.computerisms.com/LocalSettings.php
- sed -i '/^#/d' /Computerisms/sites/wiki.computerisms.com/LocalSettings.php <= Easy cruft removal
- sed -i '/^$/d' /Computerisms/sites/wiki.computerisms.com/LocalSettings.php <= Easy cruft removal
- > /Computerisms/sites/wiki.computerisms.com/extensions/LdapAuthentication/ldap.sql; vi /Computerisms/sites/wiki.computerisms.com/extensions/LdapAuthentication/ldap.sql
Reconfigure Postgres
- sed -i 's/peer map=wikitmp/peer/' /etc/postgresql/9.1/main/pg_hba.conf
- sed -i '/wikitmp/d' /etc/postgresql/9.1/main/pg_ident.conf
- echo "local helpwiki wiki peer" >> /etc/postgresql/9.1/main/pg_hba.conf
- /etc/init.d/postgresql restart
Update Database for LDAP Authentication
- su - wiki
- psql -d helpwiki -f /Computerisms/sites/wiki.computerisms.com/extensions/LdapAuthentication/ldap.sql
- exit