You are previewing MediaWiki 1.1.
O'Reilly logo
MediaWiki 1.1

Book Description

Install, manage, and customize your own MediaWiki-based site

  • Install and administer MediaWiki to build a successful wiki site

  • Master the many administrative tasks associated with running and securing your wiki

  • Clear focus on beginners with lots of step-by-step instructions and clear explanation

  • Up-to-date with version 1.15 of MediaWiki, released in June 2009

  • In Detail

    MediaWiki is the free, open-source wiki engine software that powers Wikipedia and many of the other popular wikis across the Web. Written in PHP, it possesses many features that make it the engine of choice for large collaborative wikis: flexible markup, comprehensive user management, multimedia handling, and more. Whether you are creating a public wiki for open contributions, a private wiki for collaborating within your work team or group of friends, or even a wiki for personal use, this book will provide you with all the essential steps you require to achieve this.

    This book covers how to administer users, back up and restore content safely, migrate your installation to another server or database, and even make hacks to the code. From the installation process to customizing the pages, you will learn what it takes to run a well designed, secure MediaWiki site.

    Throughout the course of this book, you will see the many different ways that MediaWiki can be used on the Web. This book covers the open source MediaWiki wiki engine from installation and getting started through structuring your collaborative web site, advanced formatting, images, and multimedia to migrating your installation and creating new MediWiki templates. While you will be introduced to the many uses of a wiki, you will also be taken through step-by-step exercises that will help you master the many administrative tasks associated with running and securing your wiki. You will learn how to prevent unauthorized edits being made to content, how to prevent spam, how to back up and restore your wiki, how to configure its look and functionality to suit your needs, and much more.

    A fast-paced, friendly guide that uses a fun example to teach all of MediaWiki's key features.

    Table of Contents

    1. MediaWiki 1.1
    2. Credits
    3. About the Authors
    4. About the Reviewers
    5. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Time for action - heading
        1. What just happened?
        2. Pop quiz - heading
        3. Have a go hero - heading
      6. Reader feedback
      7. Customer support
        1. Errata
        2. Piracy
        3. Questions
    6. 1. About MediaWiki
      1. Before we get started
      2. An introduction to wikis
        1. The history of the wiki
        2. Introducing Wikipedia
      3. What can you do with a wiki?
        1. When wikis are not the best choice
          1. Strict access control
          2. E-commerce
          3. Static content sites
          4. Users are unwilling to learn something new
        2. What are wikis good for?
          1. Community information sharing
          2. Project collaboration
          3. Creating a user manual/FAQ page
          4. Building an entire website
          5. Company policies and documents
          6. Learning management
          7. Comparing wikis to content management systems, blogs, and forums
      4. MediaWiki
        1. MediaWiki's features
        2. MediaWiki and other wiki engines
        3. How MediaWiki fits your needs
      5. Summary
    7. 2. Installing MediaWiki
      1. MediaWiki requirements
        1. PHP
          1. Software version
          2. Extensions
          3. Database
          4. Database management
        2. Web server
        3. Hardware requirements
          1. The bare minimum
        4. One final decision
          1. Subdomains
          2. Subdirectories
          3. Installing to the root folder
        5. Pop quiz - MediaWiki requirements quiz
      2. Using the Fantastico installer
      3. Installing MediaWiki with Fantastico
      4. Time for action - installing the software
        1. What just happened?
        2. Username and password choices
      5. Downloading MediaWiki
      6. Uploading files using cPanel
      7. Time for action - uploading MediaWiki files with cPanel
        1. What just happened?
      8. Uploading MediaWiki files with an FTP client
      9. Time for action - uploading the files
        1. What just happened?
      10. Completing the installation
      11. Time for action - getting everything ready
        1. Have a go hero - use phpMyAdmin
        2. Setting permissions
        3. What just happened?
      12. Time for action - finishing up
        1. What just happened?
      13. Summary
    8. 3. Getting to Know Your Wiki
      1. Navigating the Main Page
        1. Have a go hero
        2. Navigation
          1. Community portal
          2. Current events
          3. Recent changes
          4. Random page
          5. Help
        3. Pop quiz - the navigation box
        4. Search
        5. Toolbox
          1. What links here
          2. Related changes
          3. Special pages
          4. Printable version
          5. Permanent link
        6. Pop quiz - the toolbox
        7. Body section
        8. Pop quiz - the body
        9. Footer
        10. Have a go hero - make some changes
        11. Account section
      2. Time for action - creating a user account
        1. What just happened?
        2. Have a go hero - explore the user preferences
      3. The logo
      4. Time for action - changing the logo method one
        1. What just happened?
      5. Time for action - changing the logo method two
        1. What just happened?
      6. Summary
    9. 4. Creating Content
      1. Planning for new content
      2. Creating a new page
        1. Editing the Main Page
      3. Time for action - editing the Main Page
        1. What just happened?
        2. Have a go hero
        3. Protect the Main Page
      4. Time for action - protect the Main Page
        1. What just happened?
        2. Create a new page using the search feature
      5. Time for action - create a new page using the search feature
        1. What just happened?
        2. Have a go hero
        3. Creating a new page using a wikilink
      6. Time for action - creating a new page using a link
        1. What just happened?
        2. Creating a new page using a URL
      7. Time for action - creating a new page using a URL
        1. What just happened?
        2. Pop quiz - creating pages
        3. Deleting a page
      8. Time for action - deleting a page
        1. What just happened?
      9. Formatting pages
        1. Wiki syntax
          1. The edit toolbar
      10. Time for action - editing text with the edit toolbar
        1. What just happened?
        2. The nowiki tag
        3. Formatting with HTML
        4. Have a go hero
      11. Links
        1. Internal links
        2. Interwiki links
        3. External links
      12. Time for action - creating external links
        1. What just happened?
          1. Fixing your external links
        2. Have a go hero
      13. Summary
    10. 5. Advanced Formatting
      1. Anchor links
      2. Time for action - creating anchor links
        1. What just happened?
        2. Have a go hero
      3. Lists
        1. Unordered lists
      4. Time for action - creating an unordered list
        1. What just happened?
        2. Ordered lists
      5. Time for action - creating an ordered list
        1. What just happened?
        2. Using HTML for ordered lists
        3. Have a go hero
        4. Definition lists
      6. Time for action - creating a definition list
        1. What just happened?
        2. Have a go hero
      7. Using tables
        1. Table syntax
      8. Time for action - creating a table
        1. What just happened?
        2. Styling your table
      9. Time for action - formatting our table
        1. What just happened?
        2. Nested tables
      10. Time for action - creating a nested table
        1. What just happened?
        2. Creating the main table
        3. The Featured Software table
        4. FLOSS News
        5. Top Downloads
        6. Pop quiz - tables
      11. Mathematical formulas
      12. Time for action - enabling TeX
        1. What just happened?
      13. Magic words
      14. Time for action - inserting a magic word
        1. What just happened?
      15. Summary
    11. 6. Putting the Media in MediaWiki
      1. File uploading
      2. Time for action - enabling file uploads
        1. What just happened?
      3. Uploading images
      4. Time for action - uploading an image
        1. What just happened?
        2. Existing file names
        3. Inserting an image onto a page
      5. Time for action - uploading an image onto a page
        1. What just happened?
        2. Have a go hero
        3. Creating an image gallery
      6. Time for action - creating a gallery
        1. What just happened?
      7. Video files
      8. Time for action - installing the Flash extension
        1. What just happened?
      9. Time for action - uploading a Flash file
        1. What just happened?
      10. Audio files
      11. Time for action - installing the OggHandler extension
        1. What just happened?
      12. Time for action - embedding Ogg files
        1. What just happened?
        2. Pop quiz - multimedia
      13. Summary
    12. 7. Organizing Your Wiki's Content
      1. Namespaces
      2. Time for action - creating a page in a namespace
        1. What just happened?
        2. Pop quiz - namespaces
        3. Creating a custom namespace
      3. Time for action - creating a new namespace
        1. What just happened?
      4. Categories
      5. Time for action - creating a category
        1. What just happened?
        2. Adding a page to a category
      6. Time for action - add a page to a category
        1. What just happened?
        2. Have a go hero
      7. Page templates
      8. Time for action - creating a template
        1. What just happened?
        2. Templates with parameters
      9. Time for action - using parameters in a template
        1. What just happened?
        2. Have a go hero
      10. Page redirection
      11. Time for action - redirecting a page
        1. What just happened?
      12. Moving a page
      13. Time for action - moving a page
        1. What just happened?
        2. Swapping pages
      14. Time for action - a more creative way to move a page
        1. What just happened?
      15. Summary
    13. 8. The MediaWiki Administrator
      1. User types in MediaWiki
        1. Sysop group
        2. Bureaucrat group
        3. Bot group
        4. Additional groups
          1. The Developer group
          2. Autoconfirmed
          3. Emailconfirmed
        5. User group
        6. The all users group
        7. Pop quiz - user groups
      2. Changing permissions
      3. Time for action - editing group permissions
        1. What just happened?
        2. Have a go hero
        3. Creating groups
      4. Time for action - creating a new group
        1. Adding users to a group
      5. Time for action - adding users to a group
        1. What just happened?
      6. File uploads
      7. Time for action - editing the allowed file types for uploading
        1. What just happened?
      8. MediaWiki security
      9. Time for action - stopping bad behavior
        1. What just happened?
        2. Have a go hero
      10. Time for action - checking up on logins
        1. What just happened?
        2. Have a go hero -
        3. Best practices
          1. Stay up-to-date
          2. PHP recommendations
          3. MySQL recommendations
      11. Summary
    14. 9. Multi-user Environment
      1. Users
        1. Preferences
          1. User profile
      2. Time for action - changing the user profile
        1. What just happened?
        2. Skins
      3. Time for action - changing the skin
        1. What just happened?
        2. Editing preferences
      4. Time for action - changing the editing preferences
        1. What just happened?
        2. Have a go hero
        3. Administration
          1. Page history
      5. Time for action - viewing the page history
        1. What just happened?
        2. Recent changes
        3. Pop quiz - Recent changes
        4. Watching pages
      6. Time for action - watch a page and revert
        1. What just happened?
        2. Revert changes
      7. Time for action - reverting to previous content
        1. What just happened?
        2. More administrative tools
            1. Edit summaries
            2. Minor changes
        3. Pop quiz - edits
      8. Your wiki's community
        1. Talk pages
      9. Time for action - starting a conversation on a standard talk page
      10. Time for action - starting a conversation on a user talk page
        1. What just happened?
        2. Conflicts
      11. Time for action - resolving an edit conflict
        1. What just happened?
        2. Discussion extension
      12. Time for action - installing the Discussion extension
        1. What just happened?
        2. Have a go hero
      13. Summary
    15. 10. Advanced Customization
      1. Customizing your wiki's appearance
      2. Time for action - changing the skin
        1. What just happened?
        2. Making changes to the skin
      3. Time for action - locating and analyzing the CologneBlue.php file
        1. What just happened?
        2. Editing CSS
      4. Time for action - changing the skin's background
        1. What just happened?
      5. Time for action - changing the color of the text
        1. What just happened?
        2. Have a go hero
      6. Changing the layout
        1. Pop quiz - understanding blocks
      7. Time for action - changing the footer
        1. What just happened?
        2. Have a go hero
      8. Time for action - changing the navigation links
        1. What just happened?
        2. Have a go hero
      9. Time for action - moving sections on a page
        1. What just happened?
        2. Have a go hero
      10. Customizing user capabilities
      11. Time for action - disable the ability to change skins
        1. What just happened?
      12. Hacking MediaWiki
        1. The file structure
      13. Time for action - making your wiki private
        1. What just happened?
      14. Time for action - enhancing custom namespaces
        1. What just happened?
        2. Have a go hero
      15. Summary
    16. 11. Maintaining MediaWiki
      1. Maintenance scripts
      2. Time for action - installing the MaintenanceShell extension
        1. What just happened?
      3. Backing up your wiki
      4. Time for action - backing up the database
        1. What just happened?
      5. Time for action - backing up the filesystem
        1. What just happened?
        2. Have a go hero
      6. Restoring from a backup
      7. Time for action - restoring the database backup
        1. What just happened?
      8. Time for action - restoring the filesystem on a new installation
        1. What just happened?
        2. Pop quiz - backup and restore
      9. Upgrading MediaWiki
      10. Time for action - upgrading MediaWiki
        1. What just happened?
      11. Summary
    17. 12. Integrating MediaWiki
      1. Integrating MediaWiki with WordPress
      2. Time for action - install WordPress comments
        1. What just happened?
        2. Have a go hero
        3. Pop quiz - WordPress Comments
      3. Joomla! integration
      4. Time for action - installing AuthJoomla
        1. What just happened?
        2. Pop quiz - AuthJoomla
      5. MediaWiki and Moodle
        1. Have a go hero
      6. The Single sign-on approach
        1. Have a go hero
      7. Summary
    18. A. The Best Extensions for MediaWiki
      1. Administration
        1. AbsenteeLandlord
        2. AbuseFilter
        3. AccessControl
        4. TitleBlacklist
        5. BrokenLinks
        6. Google Analytics
        7. ImportUsers
        8. MaintenanceShell
        9. ManageCategories
        10. StalkerLog
        11. UserLoginLog
        12. UserRightsList
      2. Content
        1. PdfBook
        2. Cite
        3. DocumentApproval
        4. EditOwn
        5. EmbedPDF
        6. EmbedVideoPlus
        7. Flash
        8. Google Calendar
        9. Google Maps
        10. GoogleWave
        11. Collection
        12. OggHandler
      3. User
        1. ConfirmAccount
        2. EditOnlyYourOwnPage
        3. SocialRewarding
      4. Communication
        1. AIM
        2. ContactPage
        3. ICQ
        4. IRC Chat
        5. QPoll
        6. Skype
        7. WebChat
        8. Discussion
      5. Security
        1. AuthorProtect
        2. Check Spambots
        3. EnforceStrongPassword
        4. PasswordProtectPages
        5. Bad Behavior
      6. Monetization
        1. AmazonAssociates
        2. Google Adsense & Google Adsense2
        3. PayPal
      7. Cool
        1. AnyWikiDraw
        2. Balloons
        3. CSS MenuSidebar
        4. CategoryCloud
        5. Flickr
        6. MediaWikiPlayer
        7. SendToTwitter
      8. More on extensions
    19. B. The Best of MediaWiki in Use
      1. Collaboration
      2. Support
      3. Project management
      4. Online learning
      5. The complete site
    20. C. Where to Turn to
      1. Official MediaWiki support
        1. Project:Support desk
        2. Chat
        3. Help:Contents
        4. Manual:FAQ
        5. Manual:Contents
        6. Mailing list
      2. Outside support
        1. MediaWiki Users
        2. SiteGround
    21. D. Pop quiz - Answers
      1. Chapter 2
        1. MediaWiki requirements quiz
      2. Chapter 3
        1. the navigation box
        2. the toolbox
        3. the body
      3. Chapter 4
        1. creating pages
      4. Chapter 5
        1. tables
      5. Chapter 6
        1. multimedia
      6. Chapter 7
        1. namespaces
      7. Chapter 8
        1. user groups
      8. Chapter 9
        1. Recent changes
        2. edits
      9. Chapter 10
        1. understanding blocks
      10. Chapter 11
        1. backup and restore
      11. Chapter 12
        1. WordPress Comments
        2. AuthJoomla