Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

InstallOnIIS

Summary: How to install PmWiki on IIS v6
Version: 2.2
Prerequisites: Installation of PmWiki and PHP
Status: living document
Maintainer:

Categories: Administration Install SystemTools

New web site

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 description IIS Wizard web site host header

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 home directory IIS Wizard web site access permissions

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

You can now

The defaults work out of the box with PmWiki, and this method of installation is recommended.

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

User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date
* (-) Optional negative comment. Name, date

These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on December 19, 2009, at 02:23 PM