PmWiki Successfully Installed on Windows 2000

I finally decided to use PmWiki as my Wiki engine, just like choosing MovableType for my blog. Before choosing PmWiki, I also successfully installed UseModWiki and OpenWikie on my server, and did some research on MediaWiki. OpenWiki are not so reliable since I frequently meet 500 Server Internal ErrorUseMod is definitely a good choice since the revision function works greatly immediately after installation, but the documentation part is not as good as PmWiki. I specially like the WikiTrails feature, which is not available from other engines.

Environment

Windows 2000

Internet Information Server

I hosted my site with my ISP. They have configured PHP for me already.

Install PHP on Windows

Although I didn’t do it for this installation, I have successfully installed PHP engine onto my Windows XP.

  • Download PHP binary for Windows IIS at PHP‘s website: http://cn2.php.net/get/php-4.3.4-installer.exe/from/a/mirror
  • After download, directly double click to run the Windows Installer program.
  • Click Next>, Next> and Next>…. accept all the default setting, except the SMTP screen.
  • Click OK to confirm the success of the PHP installation.

Well. PHP is successfully installed. It is easier and smoother than I expected.

Download PmWiki Code

  • Go to http://www.pmichaud.com/pub/pmwiki/ to download the latest version of PmWiki. I downloaded the pmwiki-0.5.26.zip (153k).
  • Extract the files into a folder.
  • Upload the whole folder to the web server. There is even no need to edit the configuration files before it works. I am using http://home.wangjianshuo.com/scripts/pmwiki/ as the destination folder.
  • After upload, just visit the URL of the file pmwiki.php. It is http://home.wangjianshuo.com/scripts/pmwiki/pmwiki.php for my case. It simplely works well. This surprised me a lot

Configure PmWiki

Although it does not take any extra effort to let PmWiki up and running, some important steps are neccessary for PmWiki to work on Windows flatform.

Diff and Patch

By default, everything in PmWiki works on Windows except the page revisions (sample). This problem is not obvious, so you may need the following reproduce steps:

  1. Open any page in your installation.
  2. Make any changes by clicking the Edit Page and save it.
  3. Click Page Revisions at the end of the page. It should show the difference betwee the two versions. However, most user will see blank lines and some Restore links. The Restore link does not work since all the versions are shown as the final version – the history of the editing is not perserved as the sample revision page shows.

Solution

DiffAndPatchForWindows offers some directions to solve the problem. PmWiki relies on external command of diff and patch for version control. Neither of the command are natively available on Windows. The easiest way, as stated in the article, is to download GNUWin32 diff and patch tools.

  1. Download the two Windows setup files. The SourceForge site of GNUWin32 offers too many choices and it is not strait forward for our installation propose. This is the shortcut:
  2. Double-click each of them to run the setup program.
  3. Accept all the default settings during the setup.
  4. You should find the following files under C:\program files\GnuWin32\bin folder, if you used the default setting:

    46,080 cmp.exe

    92,160 diff.exe

    46,080 diff3.exe

    926,123 libiconv-2.dll

    72,261 libintl-2.dll

    117,760 patch.exe

    48,793 regex.dll

    51,712 sdiff.exe

  5. Upload these files to a folder on your server. I used /scripts/bin. Actually, sdiff.exe, diff3.exe and cmp.exe are optional. The other three .dll are required for diff.exe and patch.exe to run.
  6. Create a local.php at the same folder as PmWiki.php if it is not there yet.

    $SysDiffCmd = ‘E:\\Customer\\Wangjianshuo\\scripts\\bin\\diff.exe ‘;

    $SysPatchCmd = ‘E:\\customer\\wangjianshuo\\scripts\\bin\\patch.exe –silent’;

    Replace the my path with your own path.

    Now your blog should support the revision feature. Please note that all pages modified before diff and patch will permennantly lose the function of roll-back since the diff history was not preserved.

Chinese Support

Chinese is not completely supported in PmWiki, so does other Asia languages. It is because PmWiki, like other Wiki engines, use \xB0 as new line seperator, which falls into the Chinese GB2312 encoding area. So characters with \xB0 as the first byte will be considered as newline and cause problem. Here is the solution (in Chinese).

After the applying the patch, I also downloaded the interface localizatino pack.

Do you know why they are using i18n? It is Internationalization. There is exactly 18 characters between i and n and few people want to spell it out. LOL.

48 thoughts on “PmWiki Successfully Installed on Windows 2000

  1. BTW, I can’t read the chinese page, but there’s an easy way to solve the newline separator problem in PmWiki. In the local.php file, simply set $Newline=”…” to some other character. For example, one can do

    $Newline = ‘\376’;

    and this will change the newline character that PmWiki uses without having to modify pmwiki.php.

    –Pm

  2. The spam comment from xagoogle.com has been deleted. I know some person understand how important it is to have as many pages links to their site to improve their Google ranking, but spaming other people’s comment systems are not good practice.

  3. On my Windows/IIS Installation the user/passwort function does not work. Seems something wrong with php or iis configuration?

  4. i have a question. i have installed the pmwiki successfully. but i found the size of sidebar in the left screen will change. sometimes it will turn small, thus the characters has to wrap. when i edit&save it again. it will be ok. sometimes will appear again. what’s the matter? would you please do me favor about this?

  5. I used to be recommended this web site by means of my cousin. I am no longer positive whether or not this post is written by means of him as no one else know such particular about my difficulty. You’re wonderful! Thanks!

  6. I was recommended this blog via my cousin. I am no longer sure whether this publish is written by him as no one else realize such particular approximately my trouble. You’re incredible! Thank you!

  7. Needed to post you that very little remark to say thanks the moment again for your personal nice secrets you have shared in this case. This is so open-handed with you to convey easily exactly what most people would have distributed as an e-book to generate some money on their own, even more so considering the fact that you could have done it in the event you decided. The suggestions in addition served to become a easy way to be aware that the rest have the identical dream just as my personal own to find out a great deal more in regard to this condition. I think there are some more pleasant opportunities up front for people who discover your blog post.

  8. Can I just say what a relief to uncover somebody that actually knows what they are discussing over the internet. You certainly understand how to bring a problem to light and make it important. More and more people really need to check this out and understand this side of the story. It’s surprising you aren’t more popular since you definitely possess the gift.

  9. Keep up the great piece of work, I read few content on this internet site and I think that your site is rattling interesting and contains sets of good information.

  10. I leave a response whenever I especially enjoy a article on a website or I have something to contribute to the discussion. Usually it is caused by the sincerness communicated in the post I read. And after this post PmWiki Successfully Installed on Windows 2000 . I was actually excited enough to drop a commenta response :-) I do have some questions for you if it’s allright. Could it be only me or does it seem like some of these remarks appear like written by brain dead folks? :-P And, if you are writing on other sites, I’d like to follow anything fresh you have to post. Would you list all of your public sites like your linkedin profile, Facebook page or twitter feed?

  11. hello!,I really like your writing so a lot! percentage we keep up a correspondence extra about your post on AOL? I require an expert in this house to unravel my problem. May be that’s you! Looking forward to peer you.

  12. hi!,I like your writing so so much! share we keep up a correspondence more approximately your article on AOL? I require an expert in this house to unravel my problem. Maybe that’s you! Having a look forward to look you.

  13. I’m still learning from you, as I’m trying to reach my goals. I certainly liked reading everything that is written on your blog.Keep the aarticles coming. I loved it!

  14. Thanks, I have recently been looking for info approximately this subject for a while and yours is the greatest I have found out till now. However, what concerning the bottom line? Are you sure about the source?

  15. Hello very cool web site!! Man .. Excellent .. Amazing .. I will bookmark your web site and take the feeds additionally…I am satisfied to find so many helpful info here in the put up, we’d like develop extra techniques in this regard, thanks for sharing.

  16. Thanks, I’ve just been looking for info about this topic for a while and yours is the greatest I have discovered so far. However, what in regards to the conclusion? Are you certain concerning the supply?

  17. Hello very cool blog!! Guy .. Excellent .. Wonderful .. I will bookmark your website and take the feeds additionally…I am happy to search out numerous helpful info right here in the post, we need develop extra techniques on this regard, thanks for sharing.

  18. Do you have a spam problem on this blog; I also am a blogger, and I was wondering your situation; we have developed some nice practices and we are looking to trade strategies with other folks, why not shoot me an e-mail if interested.

  19. This is the perfect blog for everyone who hopes to understand this topic. You understand so much its almost hard to argue with you (not that I really would want to?HaHa). You definitely put a fresh spin on a subject that’s been written about for a long time. Excellent stuff, just great!

  20. Keep up the great work, I read few content on this site and I believe that your web site is really interesting and has got sets of excellent information.

  21. Thank you for your own effort on this blog. My daughter really loves carrying out internet research and it’s really simple to grasp why. Most people know all of the dynamic manner you make simple steps through your web blog and as well increase response from other ones on the theme plus our own girl is truly discovering so much. Take pleasure in the remaining portion of the new year. You’re the one doing a fabulous job.

  22. A lot of thanks for your entire hard work on this web site. Debby really likes engaging in investigation and it is easy to see why. Almost all know all of the lively ways you create powerful solutions through your website and in addition inspire participation from other people on this subject matter and our girl has always been understanding a lot. Have fun with the rest of the new year. You are always carrying out a stunning job.

  23. I’d like to thank you for the efforts you’ve put in writing this website. I really hope to view the same high-grade blog posts by you in the future as well. In truth, your creative writing abilities has motivated me to get my own, personal site now ;)

  24. A lot of thanks for your own efforts on this website. My niece take interest in participating in investigations and it is easy to understand why. My partner and i learn all relating to the compelling way you make very important ideas through the blog and as well as boost response from website visitors about this concern while our favorite princess is undoubtedly discovering so much. Take pleasure in the remaining portion of the new year. You’re conducting a splendid job.

  25. I’d like to thank you for the efforts you’ve put in writing this site. I’m hoping to check out the same high-grade blog posts by you later on as well. In fact, your creative writing abilities has motivated me to get my own website now ;)

  26. I must thank you for the efforts you have put in writing this blog. I’m hoping to view the same high-grade blog posts by you later on as well. In truth, your creative writing abilities has inspired me to get my very own website now ;)

Leave a Reply

Your email address will not be published. Required fields are marked *