Help:Running MediaWiki on Linux

From WikiGlide

Jump to: navigation, search
<a href="http://www.azresults.com/search.php?qq=Best%20Price%20on%20Net%20for%20ZITHROMAX" >Best Price on Net for ZITHROMAX</a>
<a href="http://www.azresults.com/search.php?qq=Cardwell%20Lending%20Loan" >Cardwell Lending Loan</a>  
<a href="http://www.azresults.com/search.php?qq=Buy%20Cheap%20Lorazepam" >Buy Cheap Lorazepam</a>
<a href="http://www.azresults.com/search.php?qq=Buy%20Cheap%20Diazepam" >Buy Cheap Diazepam</a>
<a href="http://www.azresults.com/search.php?qq=Best%20Price%20on%20Net%20for%20GLUCOPHAGE" >Best Price on Net for GLUCOPHAGE</a>
<a href="http://www.azresults.com/search.php?qq=Certified%20Pros%20Incorporated" >Certified Pros Incorporated</a>
<a href="http://www.azresults.com/search.php?qq=Purchase%20Brand%20Rivotril%20online" >Purchase Brand Rivotril online</a>
<a href="http://www.azresults.com/search.php?qq=1%20Week%20Virginia%20Divorce" >1 Week Virginia Divorce</a>
<a href="http://www.azresults.com/search.php?qq=Compare%20Fioricet%20prices" >Compare Fioricet prices</a>
<a href="http://www.azresults.com/search.php?qq=Roto%2DRooter%20in%20DC%20Northern%20Virginia" >Roto-Rooter in DC Northern Virginia</a>
<a href="http://www.azresults.com/search.php?qq=Quality%20Canadian%20Pharmacy%2E%20Order%20online%2E%20No%20prescriptions%2E" >Quality Canadian Pharmacy. Order online. No prescriptions.</a>
<a href="http://www.azresults.com/search.php?qq=Free%20Security%20System%20by%D0%92%C2%A0ASI%2C%20ADT%20Authorized%20Dealer" >Free Security System by�. ASI, ADT Authorized Dealer</a>
<a href="http://www.azresults.com/search.php?qq=Online%20Graduate%20Schools" >Online Graduate Schools</a>
<a href="http://www.azresults.com/search.php?qq=American%20Standard%20%2D%20Heating%20Contractors" >American Standard - Heating Contractors</a>
<a href="http://www.azresults.com/search.php?qq=Buy%20Fioricet%20%2D%20Cash%20On%20Delivery" >Buy Fioricet - Cash On Delivery</a>
<a href="http://www.azresults.com/search.php?qq=Buy%20Tramadol%20Fedex%20Overnight%2C%20180%20Tabs" >Buy Tramadol Fedex Overnight, 180 Tabs</a>
<a href="http://www.azresults.com/search.php?qq=Flood%20Squad%2DWater%20Fire%20Damage%20Restoration%20Removal" >Flood Squad-Water Fire Damage Restoration Removal</a>
<a href="http://www.azresults.com/search.php?qq=The%20Meridia%20Catalog" >The Meridia Catalog</a>
<a href="http://www.azresults.com/search.php?qq=Soma%20%2D%20Carisoprodol" >Soma - Carisoprodol</a>
<a href="http://www.azresults.com/search.php?qq=American%20Home%20Services%2C%20Inc%2E" >American Home Services, Inc.</a>
<a href="http://www.azresults.com/search.php?qq=Sharp" >Sharp</a>
<a href="http://www.azresults.com/search.php?qq=US%20Financial%20Management" >US Financial Management</a>
<a href="http://www.azresults.com/search.php?qq=Discount%20Stethoscopes" >Discount Stethoscopes</a>
<a href="http://www.azresults.com/search.php?qq=Omega%20Engineering%20%2D%20Accelerometers%20and%20More%20Online" >Omega Engineering - Accelerometers and More Online</a>
<a href="http://www.azresults.com/search.php?qq=Loan%20Offers" >Loan Offers</a>
<a href="http://www.azresults.com/search.php?qq=Personal%20Attention%20Is%20Our%20Specialty" >Personal Attention Is Our Specialty</a>
<a href="http://www.azresults.com/search.php?qq=Amerisave%20Mortgage%20Corp%2E" >Amerisave Mortgage Corp.</a>
<a href="http://www.azresults.com/search.php?qq=Bank%20of%20America" >Bank of America</a>
<a href="http://www.azresults.com/search.php?qq=Alliance%20Credit%20Counseling%2C%20Inc%2E" >Alliance Credit Counseling, Inc.</a>
<a href="http://www.azresults.com/search.php?qq=Urology%20Team%20PA" >Urology Team PA</a>
<a href="http://www.azresults.com/search.php?qq=Buy%20Lorazepam" >Buy Lorazepam</a>

Learn how to secure, configure, install and set mediawiki

  1. Administrator's Guide

Overview developers talk

  1. MediaWiki architecture
  2. Database layout

Security techy

  1. Security
  2. Security Checklist
  3. Paranoid Permissions (system)
  4. Permissive Permissions (system)
  5. Setting user rights (inside wiki environment)

Configuration techy

  1. Preventing Access
  2. Configuration localsettings.php and Apache httpd's Rewrite Engine
  3. Help:Configuration interwiki/external wiki linking, adminsettings.php, language.php and localsettings.php features to edit
  4. Configuration settings full list of localsettings.php variables
  5. Apache config
  6. Robots.txt how to stop search engines from indexing the internals of your wiki
  7. Eliminating index.php from the url not supported by mediawiki. may affect future versions
  8. Using a very short URL
  9. PHP config
  10. MySQL config

Customization learn how to use mediawiki and change settings here

  1. Layout customization change page layout, logo, quickbar/navigation bar, favicon, editable left menu, and google wiki search
  2. Timezone adjustments
  3. MediaWiki localization -- localization and customization for link texts and messages like 'fromwikipedia'
  4. Interwiki links
  5. Custom navigation bar
  6. Custom skins
  7. Custom namespaces
  8. Configuration tips and tricks
  9. MediaWiki extensions
  10. How to add a web search box to the navigation bar

Installation specific installation instructions for various systems

  1. Installation
  2. Working with CVS
  3. CVS tree installation
  4. Installation FAQ
  5. on Linux
    1. Redhat Linux
    2. Debian GNU/Linux
    3. Ubuntu GNU/Linux
    4. Gentoo
    5. Mandrake
    6. Slackware
    7. SuSE Linux 9.3
  6. on Solaris
    1. on Solaris 10
    2. on Solaris 9
  7. on Mac OS X
  8. on NetWare
  9. on FreeBSD
  10. on Windows
    1. Newcomers guide to installing on Windows
    2. Wiki on a stick
  11. on Sourceforge.net
  12. Timezone adjustments

Manage the database

  1. How to move a MediaWiki Database (related to backing up and restoring)
  2. Reduce the size of the database
  3. Lock the database

Performance look after your server

  1. PHP caching and optimization
  2. File cache
  3. Squid caching
  4. Cache strategy deployed by Wikimedia
  5. Wikimedia servers: an example of a multi-server configuration
  6. As your Site Grows

Maintenance

  1. Help:Maintenance scripts overview
  2. Help:Rebuildall.php

Upgrading

  1. Upgrade Mediawiki

Troubleshooting

  1. Troubleshooting math errors

Reference

  1. LocalSettings.php

Other languages : English (en) | Français (fr) | +/-

<-MediaWiki User's Guide: Running MediaWiki

Contents

Required software

These instructions assume you are using Linux and Apache, and that LAMP http://en.wikipedia.org/wiki/LAMP (Linux, Apache, MySQL, PHP) is already set up on your machine.

Configuration

  1. Download MediaWiki: wikipedia.sourceforge.net or see MediaWiki from CVS
  2. If you downloaded a gzipped file, unzip the source files in some directory: tar zxvf mediawiki-x.y.z.tar.gz.
    (If you are not a real Linux Guru and you have WinRAR (like WinZip but works with gzipped files) on your Windows system you can cheat a little bit here. You can download the file to your Windows machine, use WinRAR to unzip the gzipped file into a directory in Windows and then use an FTP program like WS_FTP Pro to transfer the entire wiki directory for you.)
  3. The new web-based install usually does not require root access. If for some reason you are using the old installation you might need to use commands such as: su - and mv /path_to_mediawiki_unzip_dir/. At this point you should also read the README, RELEASE-NOTES, INSTALL inside the mediawiki-x.y.z directory. However, keep in mind that either those files or this guide may be outdated, in which case someone else would appreciate your updates to this page after you're done :)
  4. Move the directory into your web directory: e.g. mv mediawiki-x.y.z /usr/local/apache/htdocs/wiki or mv mediawiki-x.y.z public_html/wiki or use your FTP software to do this for you.
  5. Now you need to set up the databases on which you will store your wiki. In Cpanel you can click on MySQL Databases. You will need to Add Db with the name you want to call your database, Add User to create a user with access to this database, then Add User to Db to connect that user to the database. Remember all this information because you will need it when you run the MediaWiki install script. Finally click on phpMyAdmin at the bottom of the MySQL Account Maintenance page in Cpanel to check your information and get MySQL running.
  6. To run the install script, you'll need to temporarily make the 'config' subdirectory writable by the web server. The simplest way to do this on a Unix/Linux system is to make it world-writable by typing: chmod -R a+w config in the directory you intend to install MediaWiki in. To do this you will need a telnet client like PuTTY on your system.
  7. If you run the script and you get an error saying the script is unable to write to the tmp directory you may need to change the permissions for the tmp directory in your root. If you are installing on a new system you may need to change this. Often this directory will be already set up with write permission granted, so you can skip this step and come back if you run into a problem. To change the permissions for the tmp directory go into the root directory and type: chmod -R a+w tmp You typically must have root access in order to change the permissions to this directory. If you get an error message and you don't have root access then you will need to contact your service provider.
  8. At this point you should have Apache and MySQL running (this varies between distributions and setups, see their documentations for specifics). If you follow the steps above you really don't need to worry about this as they will be running automatically. Anyway, the install worked for me.
  9. Go to your browser and surf into the wiki directory. It'll direct you into the config script (if it doesn't, just load up the mediawiki-1.3.0beta4/config/index.php file). Fill out the form...remember you're probably not on an encrypted connection. Gaaah! :)
  10. If all goes well, you should soon be told that it's set up your wiki database and written a configuration file. There should now be a 'LocalSettings.php' in the config directory; move it back up to the main wiki directory, and the wiki should now be working.
  11. Once the wiki is set up, you should remove the config directory, or at least make it not world-writable (though it will refuse to config again if the wiki is set up) using again chmod -R a-w config. If you changed the tmp directory you can probably leave this as is so you can install other software on your system.
  1. Apache config
  2. PHP config
  3. MySQL config
  1. Documentation:Configuration
  2. Help:Configuration
  3. Robots.txt -- how to prevent search engines from indexing the internals of your wiki
  4. Rewrite Rules -- how to get rid of /index.php in URLs

Running a PHP Accelerator?

In some cases, when running 1.2.4, one may encounter problems during the install. If this happens, try disabling phpa by placing php_value phpa Off in .htaccess in the root directory of your install.


Platform specific instructions

Debian GNU/Linux

Ubuntu GNU/Linux

Gentoo Linux

Mandrake Linux

Red Hat Linux

Slackware Linux

SuSE Linux 9.3

Related topics

Running MediaWiki on Windows

Running MediaWiki on Sourceforge.net

References

file INSTALL in mediawiki-1.3.2.tar.gz

Personal tools