Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

InstallOnIIS

New web site
Summary: How to install PmWiki on IIS
Version: 2.2 beta
Prerequisites: Installation of PmWiki and PHP
Status: living document
Maintainer:

Categories: Administration Install

Questions answered by this recipe

How do I get PmWiki to work using the IIS webserver?

How do I give PmWiki permissions to write the wiki.d directory?

Installing PmWiki under IIS.

Locate the Internet Information Services (IIS) Manager (in Control Panel | Administrative Tools) and open it.

IIS Wizard web site host header
IIS Wizard web site description

Follow the wizard to set up the website, accept the defaults except as noted below

  • provide a description
  • specify the host header
  • browse to the directory in which the pmwiki.php script resides
  • select permissions Read and Execute
IIS Wizard web site access permissions
IIS Wizard web site home directory

Start the website by right mouse clicking on the new website and selecting start

IIS start web site

Ensure that pmwiki.php is set as a default document type by right mouse clicking on the Websites folder icon and selecting properties. Choose the Document tab and add pmwiki.pgp as a content page.

IIS Changing web sites document properties
Set IIS authentication to enable anonymous access

PmWiki writing to wiki.d

To give PmWiki permission to write to wiki.d you have to

  1. allow IIS permission to anonymously write to wiki.d directory
  2. set directory permissions on wiki.d to allow the IIS user to write to it.
  • from IIS
    • choose properties for the wiki.d directory
    • select the directory security tab
    • edit the authentication and access control
    • check the box that enables anonymous access
  • from explorer or IIS
    • from explorer choose properties for the wiki.d directory
    • or from IIS choose permissions for the wiki.d directory
    • select the security tab
    • add the Internet Guest account
    • give the internet guest account modify privileges
See the Explorer security

Problems

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters]

Notes

This recipe was written after a frustrating effort to get PmWiki running under IIS when previously it had worked fine under Apache 2.2.

PlatformWindows Server 2003 SE SP1
IISv6.0
PHP5
  • oddly the procedure for setting permissions was not required for the uploads directory

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

Comments

Hi I had to edit the Configuration properties of the Virtual Directory of PmWiki to get it to work. The default installation of php under Windows puts it under the c:\Program Files folder, and this means there is a space in the path, which causes problems.

So I had to start IIS Administration, select the PmWiki virtual directory, edit its Properties, then select Virtual Directory, then click on Configuration, and select php in Application Extensions. There the executable path contains tildes ~, which must be the culprit. Simply click Edit, then browse to the directory where your php5isapi.dll is located. After you have selected the file, make sure it is surrounded by double-quotes. Click on Ok on everything to accept the settings. Now it should work.

Christophe Keller, 06 Sept. 2007

QUESTION: Has anyone figured out how to get CleanURLs working under IIS?

-Peter Bowers April 03, 2008, at 01:06 AM

Write Permission under Windows XP

To give PmWiki permission to write to wiki.d under Windows XP & IIS you have to use the security tab in the folder properties. By default, Windows XP users have that security tab hidden. To show it follow the following procedure:

- Open My Computer - Tools > Folder Options - Go to the View tab - In the bottom of the list uncheck “Use simple file sharing (Recommended)”

Now you will have the security tab shown in the properties of every folder. Now, to give write access to PHP in order to fopen, copy or upload a file, follow this procedure:

- Right click on the folder where you want give write access (wiki.d) - Properties - Go to the Security tab - Select the Internet Guest Account ([username]/IUSR_[username]) - Allow the Write and Modify access. (You can give full permission) - Then press Ok.

Bernard Haston 28 Sept 2007

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on April 25, 2008, at 06:18 AM