Geek to Live: Set up your personal Wikipedia
http://lifehacker.com/163707/geek-to-live--set-up-your-personal-wikipedia
Filed to: Wikipedia
- Capture tools
- Downloads
- Feature
- Geek to Live
- Home server
- How To
- Screencasts
- Top
- Video Demonstration
- Wiki
- Wikimedia
- Windows
- Edit
- Delete
- Invite manually
- Promote
- XDismissXUndismiss
- Block for lifehacker
- Hide
- Share to Kinja
- Share to Facebook
- Share to Pinterest
- Share to Twitter
- Go to permalink
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
- 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.
- 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.
- 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\.
- 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.
- 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.)
Geek to Live: Set up your personal Wikipedia的更多相关文章
- 极客”一词,来自于美国俚语“geek”的音译,一般理解为性格古怪的人
起源 “ 极客”一词,来自于美国俚语“ geek”的音译,一般理解为性格古怪的人.数学“极客”大多是指,并不 一定是数学专业但又对数学等技术有狂热的兴趣并投入大量时间钻研的人.又 译作“ 奇客”.以前 ...
- Michael Kors - Wikipedia, the free encyclopedia
Michael Kors - Wikipedia, the free encyclopedia Michael Kors From Wikipedia, the free encyclopedia ...
- [wikipedia] List of free and open-source software packages
List of free and open-source software packages From Wikipedia, the free encyclopedia This articl ...
- 利用wikipedia 的API实现对其内容的查询
wikipedia提供了api可以供我们对其内容进行操作.其API文档地址为: http://en.wikipedia.org/w/api.php 列举一些常见用法: 1.全文搜索 http://en ...
- blade and soul Personal Combos
Personal Combos Since Blade and Soul is mainly based on skills, the game is more interesting after y ...
- Ubuntu 之 Personal Package Archive (PPA)
How do I use software from a PPA? To start installing and using software from a Personal Package Arc ...
- How To Create a Personal Balance Sheet
Calculating your personal net worth is the best way to know exactly what your starting point is, in ...
- A Personal Selection of Books on E lectromagnetics and Computational E lectromagnetics---David B. Davidson
链接. General Books on Electromagnetics When our department recently reviewed our junior-level text, w ...
- Wikipedia : OIT history
http://en.wikipedia.org/wiki/Order-independent_transparency Order-independent transparency From Wiki ...
随机推荐
- linux配置环境变量 - 认识
环境 ubuntu17.04 终端(就是黑框) 认识 环境变量:$PATH 在 ×××/bin 下的命令,可以不用到指定目录下, 比如:安装hbase后,hbase提供一些shell命令在habse ...
- 洛谷P2709 BZOJ 3781 小B的询问 (莫队)
题目描述 小B有一个序列,包含N个1~K之间的整数.他一共有M个询问,每个询问给定一个区间[L..R],求Sigma(c(i)^2)的值,其中i的值从1到K,其中c(i)表示数字i在[L..R]中的重 ...
- 【三支火把】---# program (n)以及C语言字符对齐的总结
#pragma pack(n) 当n大于结构体中内存占用最大的变量内存时,将按照最大内存变量的字节占用数进行对齐,否则,就根据n进行对齐 情况一: 例一: #pragma pack(4) struct ...
- linux线程池
typedef struct task_node { void *arg; /* fun arg. */ void *(*fun) (void *); /* the real work of the ...
- github 第三方登录
第三方登录先了解 OAuth 2.0 OAuth 协议的认证和授权的过程如下: 用户打开我的博客后,我想要通过GitHub获取改用户的基本信息 在转跳到GitHub的授权页面后,用户同意我获取他的基本 ...
- sharepoint_study_8
描述:如何删除webPart无效文件? 图示: 有时候webpart的部署包虽然删除了,但是它的文件依然会留在这个类别中,怎样删除这些无效的文件呢? 解决: 在网站设置中打开web部件,里面列出了网站 ...
- CF E. Vasya and a Tree】 dfs+树状数组(给你一棵n个节点的树,每个点有一个权值,初始全为0,m次操作,每次三个数(v, d, x)表示只考虑以v为根的子树,将所有与v点距离小于等于d的点权值全部加上x,求所有操作完毕后,所有节点的值)
题意: 给你一棵n个节点的树,每个点有一个权值,初始全为0,m次操作,每次三个数(v, d, x)表示只考虑以v为根的子树,将所有与v点距离小于等于d的点权值全部加上x,求所有操作完毕后,所有节点的值 ...
- php返回数据格式
PHP返回HTML代码: header('Content-type:text/html; charset=utf-8'); PHP返回xml代码:header('content-type: t ...
- Linux 防火墙iptables 实例
iptables的基本语法格式 iptables [-t 表名] 命令选项 [链名] [条件匹配] [-j 目标动作或跳转] 说明:表名.链名用于指定iptables命令所操作的表和链,命令选项用于指 ...
- MYSQL生成两个日期之间的所有日期数据
set @i = -1; set @sql = repeat(" select 1 union all",-datediff('2021-01-01','2030-12-31')+ ...