Book Image

MediaWiki 1.1 Beginner's Guide

By : Jeff Orlof, Mizanur Rahman
Book Image

MediaWiki 1.1 Beginner's Guide

By: Jeff Orlof, Mizanur Rahman

Overview of this book

<p>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.<br /><br />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.<br /><br />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.</p>
Table of Contents (21 chapters)
MediaWiki 1.1
Credits
About the Authors
About the Reviewers
Preface

Time for action - enabling TeX


Let's go ahead and enable TeX on our wiki. You will need to have access to your LocalSettings.php file to do this, so make sure that you have cPanel or your FTP program for this exercise. We have made changes to this file before so you shouldn't be worried about this at all.

  1. 1. Using either cPanel or your FTP program, open up the backend to your site.

  2. 2. Navigate to your public_html folder and expand it.

  3. 3. Open your LocalSettings.php file for editing.

  4. 4. Find the line that reads $wgUseTeX = false;.

  5. 5. Change the word false to true.

  6. 6. Save your changes.

What just happened?

By going into the filesystem of our website, we located the LocalSettings.php file and made the necessary change to enable TeX markups on our wiki. Now, we can go ahead and use the<math> tag to insert mathematical symbols. We also learned that even if we enable this, we still have to have our hosting provider install TeX and provide us with the path, so we can define this also in our LocalSettings...