View source for Mediawiki
Jump to:
navigation
,
search
== Introduction == Notes regarding install of mediawiki from scratch on various platforms. In all cases, this was tried on an OpenVZ container (Virtual Server or VPS) instance, and in the case of Fedora, it was also tried on a bare-metal installation (Fedora-15 Lovelock, same as the VPS). For those who experience religious fervor over distros, they are listed in alphabetic order. Note: Install of mysql was broken on both Debian and Ubuntu at the time this was written; that needs to be revisited since it was obviously a transient problem. == Installing Mediawiki from Packages == === CentOS === The CentOS default repos don't have it. Here's [http://blog.javachap.com/index.php/installing-mediawiki-on-linux-centos/ one article]. My solution in the short term is to put it into a Fedora (virtual) slice. Yum ho! === Debian === It's in there. [http://packages.debian.org/squeeze/mediawiki Squeeze Page] gets you v15 and Wheezy gets you v19, this will be in flux as Wheezy was just released (circa 5/6/3024). Note I decided to try this in an OVZ slice to host it on a CentOS 6.4 box. <pre> # apt-get update # apt-get upgrade # apt-get install mediawiki </pre> Since the slice didn't have mysql, php installed, I got the whole ball of wax. It didn't work, particularly mysql-server. I had to start the slice again from scratch. Following is what worked... The following is somewhat sanitized... Note IP config not saved. (reverse proxy later) <pre> service iptables stop vzctl create 101 --ostemplate debian-6.0-x86 --config basic vzctl set 101 --ipadd 10.1.38.48 --nameserver 8.8.8.8 vzctl set 101 --ram 720M --hostname mediawiki --diskspace 12G --swap 1G --save vzctl start 101 vzctl enter 101 </pre> Once inside... <pre> apt-get update apt-get upgrade apt-get install mysql-server ... 130506 12:39:48 InnoDB: Starting shutdown... 130506 12:39:53 InnoDB: Shutdown completed; log sequence number 0 44233 Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed! invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.1 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up libhtml-template-perl (2.9-2) ... configured to not write apport reports dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.1; however: Package mysql-server-5.1 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured configured to not write apport reports Errors were encountered while processing: mysql-server-5.1 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) </pre> Yoikes! Abort, abort! === Fedora (15 - Lovelock) === It's in there: <pre> drupal7-mediawiki_api.noarch : Provides a MediaWiki syntax to html conversion : input filter mediawiki-Cite.noarch : An extension to provide Citation tools for Mediawiki mediawiki-ParserFunctions.noarch : Enhances the Mediawiki parser with logical : functions mediawiki-imagemap.noarch : The ImageMap extension for MediaWiki mediawiki-math.x86_64 : Math support for mediawiki. mediawiki-nomath.x86_64 : mediawiki w/o texvc. mediawiki-openid.noarch : The OpenID extension for MediaWiki mediawiki-rss.noarch : Displays an RSS feed on a mediawiki page mediawiki-semantic.noarch : An extension of MediaWiki that improves content : organization mediawiki-wikicalendar.noarch : Simple calendar extension for mediawiki python-simplemediawiki.noarch : Extremely low-level wrapper to the MediaWiki API libreoffice-wiki-publisher.x86_64 : Create Wiki articles on MediaWiki servers : with LibreOffice mediawiki.x86_64 : A wiki engine mediawiki-CategoryTree.noarch : Provides a dynamic view of the wiki's category : structure as a tree mediawiki-HTTP302Found.noarch : Forces an external HTTP 302 redirect instead of : internal redirects mediawiki-LdapAccount.noarch : Use LDAP as account source for medaiwiki mediawiki-SpecialInterwiki.noarch : An extension to provide an interwiki : management system mediawiki-validator.noarch : Provides generic parameter handling support to : other extensions python-mwclient.noarch : Mwclient is a client to the MediaWiki API python-wikimarkup.noarch : Formats text to Mediawiki syntax </pre> Had to get a contemporary (non-supported) template of Fedora17 to get this done... See Debian above for container creation, etc. Once inside... <pre> yum update yum upgrade yum install mysql-server yum install php yum install mediawiki </pre> Not shockingly, installing mediawiki installed tons of dependencies despite the full load of Fedora17 and pre-load of mySQL and php. You wind up with /var/www/wiki and nothing in httpd.conf I found linking /var/www/html/wiki -> /var/www/wiki worked best, but still having a problem with CSS. The CSS problem was SOLVED by creating a link from /var/www/wiki/skins to the skins directory in /usr/share/mediawiki/skins - somehow it was missing. <pre> cd /var/www/wiki ln -s /usr/share/mediawiki/skins skins </pre> === Ubuntu === See Debian above for container creation, etc. Once inside... <pre> apt-get update apt-get upgrade apt-get install mysql-server ... Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for │ │ more information. </pre> Similar issue? Couldn't set dbpasswd.
Return to
Mediawiki
.
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Toolbox
What links here
Related changes
Special pages
Page information