Difference between revisions of "MediaWiki"
From Funtoo Linux
| Line 27: | Line 27: | ||
# ##i##rc | # ##i##rc | ||
# ##i##mysql-secure-installation | # ##i##mysql-secure-installation | ||
| + | </console> | ||
| + | |||
| + | Now, let's create a database named <tt>mediawiki</tt> for use by MediaWiki, and a <tt>mediawiki@localhost</tt> user to access this database, using a password of <tt>wikifever</tt>: | ||
| + | |||
| + | <console> | ||
| + | # ##i##mysql -u root -p | ||
| + | Enter password: | ||
| + | Welcome to the MySQL monitor. Commands end with ; or \g. | ||
| + | Your MySQL connection id is 7 | ||
| + | Server version: 5.1.62-log Gentoo Linux mysql-5.1.62-r1 | ||
| + | |||
| + | Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. | ||
| + | |||
| + | Oracle is a registered trademark of Oracle Corporation and/or its | ||
| + | affiliates. Other names may be trademarks of their respective | ||
| + | owners. | ||
| + | |||
| + | Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. | ||
| + | |||
| + | mysql> ##i##create database mediawiki; | ||
| + | Query OK, 1 row affected (0.01 sec) | ||
| + | |||
| + | mysql> ##i##grant index, create, select, insert, update, delete, alter, lock tables on mediawiki.* to 'mediawiki'@'localhost' identified by 'wikifever'; | ||
| + | Query OK, 0 rows affected (0.01 sec) | ||
| + | |||
| + | mysql> ##i##\q | ||
| + | Bye | ||
| + | # | ||
</console> | </console> | ||
Revision as of 23:12, 9 August 2012
This page documents how to set up MediaWiki on Funtoo Linux.
Add the following line to /etc/make.conf:
PHP_TARGETS="php-5-4"
Add the following lines to /etc/portage/package.use/php:
dev-lang/php curl exif fpm gd mysql mysqli sockets suhosin threads intl >=dev-php/xcache-2.0.0 php_targets_php5-4
Emerge xcache. This should pull in MySQL as well as php-5.4:
# emerge --jobs xcache
Time to configure MySQL with a root password, start it, secure it, and enable it to start at boot:
# emerge --config mysql # rc-update add mysql default # rc # mysql-secure-installation
Now, let's create a database named mediawiki for use by MediaWiki, and a mediawiki@localhost user to access this database, using a password of wikifever:
# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 5.1.62-log Gentoo Linux mysql-5.1.62-r1 Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database mediawiki; Query OK, 1 row affected (0.01 sec) mysql> grant index, create, select, insert, update, delete, alter, lock tables on mediawiki.* to 'mediawiki'@'localhost' identified by 'wikifever'; Query OK, 0 rows affected (0.01 sec) mysql> \q Bye #