Manual:Running MediaWiki on Gentoo Linux

= Prerequisites = (optional, suggested) emerge sync emerge ufed -uD ufed is the Gentoo Linux USE flags editor ufed (check useflags, you'll need mod_php, gd if you want thumbnails)

emerge imagemagick (This is not required but you may wish to have it.                   ImageMagick can also make thumbnails if you do not                    want to include gd [a library] support in php.                    I think LaTeX support also needs this.)

emerge dev-lang/ocaml (will be required if you want LaTeX support)

(required... remember to -p them first! if you already have them, you probably don't need them again!) emerge mysql -uD emerge apache -uD emerge php -uD (check useflags with ufed. php has many use flags options.. use emerge -pv php to see them all.) (NOTE!! by default, some (if not all) php ebuilds disable sessions, which will break logins.  add                 sessions by appending 'session' to the mod_php USE line in /etc/portage/package.use) (probably required) emerge mod_php -uD

(get services going by default) rc-update add apache2 default rc-update add mysql default

(turn on services) /etc/init.d/apache2 start /etc/init.d/mysql start

(possible actions for services include, zap, stop, restart and start)

= Possibility of an ebuild for mediawiki! = http://bugs.gentoo.org/show_bug.cgi?id=37894

Talk:Running_MediaWiki_on_Gentoo_Linux

= Get Mediawiki = (from the SourceForge page, it took me forever to find!) http://www.sf.net/projects/wikipedia

Unpack
using tar -xvvzf baby! (maybe not the f... I don't know what it does, but this is black magic unix crap!) (don't put it into your webroot, alias the directory, conditional to php being operational)

Set Permissions
user should be apache, group should be apache. You should not give anybody access to this directory.. or at least LocalSettings.conf as it contains passwords! Just let user apache do it.

Alias directory
edit your /etc/apache2/conf ... commonapache2.conf? file apache configuration

setup rewrite rules
I have no idea how to do these, see Rewrite Rules

Restart apache
/etc/init.d/apache2 restart

= run the configuration web page = yes, you have to config that directory manually...

= MediaWikis running on Gentoo =
 * http://gentoo-wiki.com A little surprise for me when I found it. :-)
 * http://escargot.icehouse.net/mediawiki  (the page upgrade from 1.2 to 1.3 was origionally written with a gentoo box)  and this user is silly enough to be willing to provide _limited_ tech support if you bother to User:AaronPeterson (he prefers telephone, because he types too much!)
 * http://lnx101.parl.clemson.edu