http://lifehacker.com/163707/geek-to-live--set-up-your-personal-wikipedia

Filed to: Wikipedia

3/29/06 12:30pm

by Gina Trapani

The collaboratively-edited Wikipedia is a vast, searchable repository of information, constantly written and re-written over time by its readers. Don't you wish you or your group could have your own editable encyclopedia of braindumps and documentation like Wikipedia? Well, you can. The software that runs Wikipedia, called MediaWiki, is freely available for anyone to install. Today we'll set up MediaWiki on your Windows PC and get started with a video demonstration on how to add, edit and compare page revisions in your new, local personalpedia.

Note: MediaWiki is advanced wiki software that requires Apache web server, the PHP scripting language and the MySQL database server installed to run. If this makes your tummy hurt, a simpler (and less-featured) alternative to MediaWiki is the excellent Instiki. See previous feature How to host a personal wiki on your home computer for more on installing Instiki. As always, know that setting up a server on your personal computer can be a security risk. Make sure you are behind a firewall that prevents unauthorized access to your server.

Geek to Live: How to host a personal wiki on your home computerGeek to Live: How to host a personal wiki on your home computerGeek to Live: How to host a personal wiki on your

by Gina TrapaniRead more Read more

What you'll need
  • A Windows XP computer
    (Not already running Apache web server)
  • Free WAMP server software and MediaWiki
    (Available for download)
Set up your local installation of MediaWiki
  1. Install WAMP.

    WAMP is an all-in-one PHP/MySQL/Apache installation for Windows. Download WAMP from here. Install WAMP in the C:\wamp\ directory. (If you must install it elsewhere, make sure the folder you choose has no spaces or special characters in its name.) Check the Autostart option. When the installation is complete, visit http://localhost/ in your web browser to see the front page of your new web server.

  2. Change your MySQL database server password.

    You're already running a firewall (right?) but just to be on the safe side, we're going to assign a password to your new database server because we're healthily paranoid like that. From the homepage of your WAMP installation (http://localhost/), go to the link on the page on the left under Tools that reads "PHPmyadmin 2.7.0-pl2." From there click on the "Privileges" link. Check all users besides "root" and choose Delete. Then, click the edit button next to the root user, and change the password to something you'll remember and save. Once that's done, PHPmyadmin will no longer be able to access your database because it doesn't have your new password. We can remedy that easily.

    Open the C:\wamp\phpmyadmin\config.inc.php file in a text editor. Change the line that reads:

    $cfg['Servers'][$i]['password'] = '';

    to

    $cfg['Servers'][$i]['password'] = 'yournewpassword';

    Where yournewpassword is the password you just set up in PHPmyadmin. See more on changing your db password here.

  3. Install MediaWiki, the software that powers Wikipedia.

    Download MediaWiki from here. Unzip and untar the package using a utility like 7-Zip. Rename the resulting folder from "media-wiki-1.5.8" to "mywikipedia" and move the entire directory to c:\wamp\www\mywikipedia\.

  4. Configure MediaWiki.

    Access your new MediaWiki installation at http://localhost/mywikipedia/. Click on the "set the wiki up!" link. The next screen requires all of MediaWiki's configuration options. Be sure to choose a site name (mine is "Ginapedia") and a WikiSysOp password. Under the Database Configuration, set the Database User to root and the password to whatever you chose in step 2. This seems like a long and complicated questionnaire, but it's not. Click here to see my full configuration screen all filled in.

    Then click the "Install!" button and let MediaWiki work its magic. All goes well, you'll get a message at the bottom of the screen that reads, "Move the config/LocalSettings.php file into the parent directory, then follow this link to your wiki." So let's do just that: Cut and paste the c:\wamp\www\mywikipedia\config\LocalSettings.php file to c:\wamp\www\mywikipedia\LocalSettings.php.

  5. Visit your brand, spankin' new personal wiki at http://localhost/mywikipedia/.

    Congratulations! You got MediaWiki up and running, you big tech stud. You'll notice that the image in the upper lefthand corner isn't very personal. To set it to something prettier than this:

    Crop and resize an image of your choice to 135x135 pixels (72 dpi), and save it in C:\wamp\www\mywikipedia\skins\common\images\mywikilogo.jpg. Then, open the c:\wamp\www\mywikipedia\LocalSettings.php file and change the line that reads:

    $wgLogo = "$wgStylePath/common/images/wiki.png";

    to:

    $wgLogo = "$wgStylePath/common/images/mywikilogo.jpg";

    Refresh the page to see your new logo.

Now you've got a clean, new, customized local installation of MediaWiki all ready for you to use how you please. As evidenced by Wikipedia, the best application of a wiki is open, group collaboration on a set of documents. However, wiki's come in handy for individual use as well, to track lists, notes, links, images, or anything else you want to search or reference over time. Wiki's are especially good for writing projects, as they keep multiple version history and allow for very easy adding and editing of pages. Keith, Adam and I use a Lifehacker MediaWiki installation to collaborate on site ideas and drafts, and I use a wiki to keep personal notes on programming techniques, to track software serial numbers, quotes I like, and other relevant links and articles.

The main learning curve with MediaWiki is the special markup (Wikitext) that it uses to format a page. However, using Wikitext to author and add pages is very easy. Here's a quick video demonstration of using my new personalpedia to start writing a novel. (Warning: audio of my not-made-for-TV voice ahead.)

最新文章

  1. putty无密码登陆
  2. [Machine-Learning] K临近算法-简单例子
  3. Android在外部存储空间中读写文件
  4. Python 网络编程(二)
  5. SQL2005 遍历表插入
  6. C语言和Lua的交互
  7. 【转】Android Studio简单设置
  8. Mongodb使用
  9. sql事务,在sql2000里判断执行是否成功用@@ERROR 判断
  10. win7下安装sdks
  11. POJ 3311---Hie with the Pie(状压DP)
  12. 【Python】 更棒的Excel操作模块xlwings
  13. bzoj3963[WF2011]MachineWorks cdq分治+斜率优化dp
  14. 分析python日志重复输出问题
  15. 2.DNN-神经网络推导
  16. 通过sort()方法实现升序和降序排列
  17. JSP动作标签flush属性值
  18. Oracle DBA最常用的269条命令
  19. Android BitmapUtils工具类
  20. (转)Render Path

热门文章

  1. Airtest中pcoc的常用方法
  2. Python从小看到大
  3. sap alv 单元格行列邓颜色设定(记录一下网址,供下次使用)
  4. P1505 [国家集训队]旅游
  5. luogu2513 逆序对数列
  6. C++使用using namespace std报错分析与解决方案
  7. 各平台安装和使用Docker的差异
  8. 互联网开发-web文件上传性能问题
  9. linu samba服务
  10. SVN更改通知的工具commitmonitor