惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
罗磊的独立博客
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
S
Schneier on Security
V
Vulnerabilities – Threatpost
T
Tenable Blog
博客园 - 【当耐特】
博客园 - 聂微东
I
Intezer
S
Securelist
C
Cisco Blogs
腾讯CDC
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
Security Archives - TechRepublic
Security Archives - TechRepublic
D
Darknet – Hacking Tools, Hacker News & Cyber Security
美团技术团队
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
AWS News Blog
AWS News Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI
Cloudbric
Cloudbric
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
The Last Watchdog
The Last Watchdog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
C
CERT Recently Published Vulnerability Notes
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
The Register - Security
The Register - Security
博客园 - 叶小钗
博客园 - 司徒正美
博客园_首页
Google DeepMind News
Google DeepMind News
Hacker News: Ask HN
Hacker News: Ask HN
Spread Privacy
Spread Privacy
雷峰网
雷峰网
I
InfoQ
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Schneier on Security
Schneier on Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - Jans

Flutter运行时闪退 利用 Python 爬虫来对文本进行批量化翻译 Thinkpad T460声音问题 Error 56: The Cisco Systems, Inc. VPN Service has not been started(Cisco VPN在Vista/Win 7下出现Error 56的解决办法) - Jans Weblogic中配置Active Directory Authentication Provider weblogic 10.3.5重置密码 在基于WCF开发的Web Service导出WSDL定义问题及自定义wsdl:port 名称 JNI:在线程或信号处理函数中访问自定义类 (转)Java实现Web Service过程中处理SOAP Header的问题 (转)GitHub上整理的一些工具,求补充 - (转)老衣的开发工具和类库集之2014版 GCC的内存边界对齐 如何删除Weblogic域 电蚊拍选购参考 Localizing WPF with .resx files C#操作串口总结 ASP.NET MVC的国际化问题 小众的分布式版本管理工具Code Co-op 关于效率长尾现象
Geek to Live: Set up your personal Wikipedia
Jans · 2015-06-24 · via 博客园 - Jans

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

Filed to: Wikipedia

3/29/06 12:30pm

Geek to Live: Set up your personal Wikipedia

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 computer Geek to Live: How to host a personal wiki on your home computer Geek to Live: How to host a personal wiki on your

by Gina Trapani Read 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:

    Geek to Live: Set up your personal Wikipedia

    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.)