Line 18: |
Line 18: |
| Also login was with user ''admin'' and the password of the SME Server ''admin'' user - as opposed to password ''admin'' stated in wiki | | Also login was with user ''admin'' and the password of the SME Server ''admin'' user - as opposed to password ''admin'' stated in wiki |
| [[User:Timn|Timn]] 14:46, 24 February 2010 (UTC) | | [[User:Timn|Timn]] 14:46, 24 February 2010 (UTC) |
| + | |
| + | |
| + | -- |
| + | This howto was posted at the URL www.netztechnik.at/download/linux/sme/sme8/howto/mediawiki/howto-mediawiki.txt - which is no longer working - copied from the google cache: |
| + | -- |
| + | <pre> |
| + | ########################################################################################################### |
| + | # # |
| + | # ++++++++ Draft v0.3 - 14022011 ++++++++++ # |
| + | # # |
| + | # +++ Author Franz J. PANIS - http://www.netztechnik.at +++ # |
| + | # # |
| + | ########################################################################################################### |
| + | |
| + | |
| + | +++ Howto install Mediawiki 1.16.x on SME8b6 (contribs.org) +++ |
| + | |
| + | |
| + | # download and untar the files |
| + | cd /usr/local/src |
| + | wget -c http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.2.tar.gz |
| + | tar xvf mediawiki-1.16.2.tar.gz |
| + | mv /usr/local/src/media*/ /opt/mediawiki/ |
| + | rm -f mediawiki-1.16.2.tar.gz |
| + | |
| + | # Change permissions |
| + | chown -R www.www /opt/mediawiki |
| + | chmod a+w /opt/mediawiki/config |
| + | |
| + | # Just for installation create the mysql-user temp |
| + | mysql -e "CREATE USER 'temp'@'localhost' IDENTIFIED BY 'temp';" |
| + | mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'temp'@'localhost' WITH GRANT OPTION;" |
| + | mysql -e "FLUSH PRIVILEGES" |
| + | |
| + | # Create a Template Fragement |
| + | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ |
| + | cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ |
| + | |
| + | nano 89mediawiki |
| + | |
| + | ------------------------------------ Begin - Content of 89mediawiki -------------------------------------- |
| + | |
| + | Alias /mediawiki /opt/mediawiki |
| + | Alias /wiki /opt/mediawiki/index.php |
| + | |
| + | <Directory /opt/mediawiki> |
| + | # SSLRequireSSL on |
| + | AddType application/x-httpd-php .php .php3 .phtml |
| + | Options FollowSymLinks |
| + | order deny,allow |
| + | allow from all |
| + | php_flag register_globals off |
| + | php_admin_value open_basedir /opt/mediawiki/:/tmp/ |
| + | </Directory> |
| + | |
| + | <Directory /opt/mediawiki/includes> |
| + | order deny,allow |
| + | allow from all |
| + | </Directory> |
| + | |
| + | <Directory /opt/mediawiki/languages> |
| + | order deny,allow |
| + | allow from all |
| + | </Directory> |
| + | |
| + | <Directory /opt/mediawiki/maintenance> |
| + | order deny,allow |
| + | allow from all |
| + | </Directory> |
| + | |
| + | <Directory /opt/mediawiki/math> |
| + | order deny,allow |
| + | allow from all |
| + | </Directory> |
| + | |
| + | <Directory /opt/mediawiki/tests> |
| + | order deny,allow |
| + | allow from all |
| + | </Directory> |
| + | |
| + | <Directory /opt/mediawiki/maintenance/archives> |
| + | order deny,allow |
| + | allow from all |
| + | </Directory> |
| + | |
| + | ------------------------------------ End - Content of 89mediawiki -------------------------------------- |
| + | |
| + | |
| + | # Expand template |
| + | expand-template /etc/httpd/conf/httpd.conf |
| + | /etc/rc.d/init.d/httpd-e-smith restart |
| + | |
| + | # Configure MediaWiki |
| + | Goto http://<your-server-ip>/mediawiki/index.php |
| + | |
| + | # Site config |
| + | |
| + | - Wiki name: your-wikiname |
| + | - Contact e-mail: admin@your-domain |
| + | - Language: chose-your-language |
| + | - Copyright/license: what-you-need |
| + | - Admin username: WikiSysop |
| + | - Password: your-WikiSysop-password |
| + | - Password confirm: your-WikiSysop-password |
| + | - Object caching: No caching |
| + | |
| + | |
| + | # E-mail, e-mail notification and authentication setup |
| + | |
| + | - E-mail features (global): Enabled |
| + | - User-to-user e-mail: Enabled |
| + | - E-mail notification about changes: Enabled |
| + | - E-mail address authentication: Enabled |
| + | |
| + | |
| + | # Database config |
| + | |
| + | - Database type: MySQL |
| + | - Database host: localhost |
| + | - Database name: wikidb |
| + | - DB username: wikiuser |
| + | - DB password: your-wikiuser-password |
| + | - DB password confirm: your-wikiuser-password |
| + | - Superuser account: click to activate |
| + | - Superuser name: temp |
| + | - Superuser password: temp |
| + | |
| + | |
| + | # MySQL-specific options |
| + | |
| + | - Storage Engine: InnoDB |
| + | - Database character set: MySQL 4.1/5.0 binary |
| + | |
| + | |
| + | Finaly click on Install MediaWiki! Button |
| + | |
| + | |
| + | # After the Configuration move LocalSettings.php and change Permissions |
| + | mv /opt/mediawiki/config/LocalSettings.php /opt/mediawiki/ |
| + | chmod 600 /opt/mediawiki/LocalSettings.php |
| + | |
| + | # Delete config folder |
| + | rm -rf /opt/mediawiki/config |
| + | |
| + | # Drop the mysql-user temp with: |
| + | mysql -e "DROP USER 'temp'@'localhost'" |
| + | |
| + | |
| + | # Finaly goto this Link: |
| + | http://<your-server-ip>/mediawiki/ |
| + | |
| + | # Login as wiki-admin |
| + | username: WikiSysop |
| + | passwword: your-WikiSysop-password |
| + | |
| + | </pre> |