Difference between revisions of "User:Sven"
m (→InterWiki) |
m (→MediaWiki) |
||
| Line 17: | Line 17: | ||
*[[metawikipedia:Help:Variable|Variables]] | *[[metawikipedia:Help:Variable|Variables]] | ||
*[http://meta.wikimedia.org/wiki/Category:MediaWiki_User%27s_Guide Users Guide] | *[http://meta.wikimedia.org/wiki/Category:MediaWiki_User%27s_Guide Users Guide] | ||
| + | ;Customizing | ||
*[http://meta.wikimedia.org/wiki/MediaWiki_Hooks_and_their_Parameters Hooks and their parameters] | *[http://meta.wikimedia.org/wiki/MediaWiki_Hooks_and_their_Parameters Hooks and their parameters] | ||
*[http://meta.wikimedia.org/wiki/LocalSettings.php LocalSettings.php] | *[http://meta.wikimedia.org/wiki/LocalSettings.php LocalSettings.php] | ||
| Line 22: | Line 23: | ||
*[http://meta.wikimedia.org/wiki/MediaWiki_architecture MediaWiki Architecture] | *[http://meta.wikimedia.org/wiki/MediaWiki_architecture MediaWiki Architecture] | ||
*[http://meta.wikimedia.org/wiki/Category:MediaWiki_tools MediaWiki tools] | *[http://meta.wikimedia.org/wiki/Category:MediaWiki_tools MediaWiki tools] | ||
| − | *http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot | + | *[http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot Python Wikipedia bot] |
| + | |||
====InterWiki==== | ====InterWiki==== | ||
*[[metawikipedia:Interwiki_map|WikiMedia Interwiki map]] | *[[metawikipedia:Interwiki_map|WikiMedia Interwiki map]] | ||
Revision as of 21:15, 7 February 2006
- My Wiki Userpages
- Bookmarks
Contents
Wikipedia
MediaWiki
- Customizing
- Hooks and their parameters
- LocalSettings.php
- DefaultSettings.php
- MediaWiki Architecture
- MediaWiki tools
- Python Wikipedia bot
InterWiki
- Books
- Finance
Installing MediaWiki on OS X
Media wiki requires:
- Apache webserver
- PHP
- Mysql
See mediawiki.org and sourceforge for installation details. As OS X ships with a built in Apache webserver, installation of PHP, and Mysql is all that is required. If you want to run Apache as a secure webserver then you probably have to build Apache from source.
PHP 5.0.4/4.3.11 is available as a dmg, and Mysql 4.1.13a is available A Mysql backup tool is also available from the apple website
Apache in OS X (tiger)
Apache/1.3.33 is shipped with a standard install of OS X on Jaguar, Panther, and Tiger. It does not come with php pre-compiled.
- Start your personal webserver under;
preferences → Sharing → Personal Web Sharing
There are differences as to the locations of installed directories from standard binary/source linux installations. Its worth checking the build with the terminal command httpd -V
| +Sven/OS X/httpd -V |
The webpage is accessable as localhost or 127.0.0.1, with access to your personal home page at:
- http://127.0.0.1/~USER_NAME
The webserver pages are located in the directories
- /Library/WebServer (System pages)
- /Users/USER_NAME/Sites (User page)
Useful Links
Backing up wikidb using mysql (OS X)
Information for doing this came from here. There are many ways to go about this;
- drop entire databases, and reconstruct
- drop tables if they exist for a particular database and reconstruct tables and data
- Insert data only into databases (errors can be introduced if not using INSERT IGNORE statements)
Caveat
When using restore on INSERT statements only where tables already exist, there are two ways to restore
- mysql> source backup.sql #(interactively inside mysql itself)
- mysql -u root -D wikidb < backup.sql #(bash call using a redirect)
If an error occurs in a redirect then nothing is inserted after the statement that causes the error (e.g. primary keys already exist), whereas interactively from the command line invalid INSERT's provide a warning only and valid statements are still restored. This is because the bash redirect is being used to stream the file line by line, exiting at the point of failure. Introduced into mysqldump in version 5.0.15 is --insert-ignore which allows dumps of INSERT IGNORE statements. In this case a command line redirect whould work if the dump was;
- mysqldump -u root -p --single-transaction --no-create-info --insert-ignore wikidb > /tmp/backup.sql
Here, I want to move the wikidb directory in mysql to a temporary location (say /tmp directory) so the information is not perminantly lost then use mysql to reconstruct wikidb.
mysqldump -u root -p --single-transaction wikidb > /tmp/backup.sqlcreates tables which already exist- mysqldump -u root -p --single-transaction --no-create-info wikidb > /tmp/backup.sql
- wikipath=`locate wikidb | grep wikidb$`
- sudo mv $wikipath ${wikipath}-bak
- cd /tmp
- [Time to recreate MediWiki which will make the wikidb database]
- mysql -u root -p -D wikidb < /tmp/backup.sql
- # Check the directory sizes match between wikidb and wikidb-bak
- sudo du $wikipath
- sudo du $wikipath-bak
- # Refresh the links using maintenance script
- php refreshLinks.php
xml Wiki Markup
Table Markup |
<table class=document-code><tr><td>Table Markup</td></tr></table>
|
Contact details
- Name: Marcus Davy
- Address: 27/3 Raumati Road
Remuera
Auckland 1309 - Email: MDavy@hortresearch.co.nz
mdavy86@gmail.com - Phone: 5202 751
815 8859 (work DDI)
021 500 103 (suz's cell)



