Recent Changes - Search:

add Aotearoa page







Visitor's book Site map pmwiki-2.2.139

Wiki setup

How to set up a wiki for an intranet on your home network. After you have done this you can use your wiki in your Website setup.


  • read the PmWiki installation and initial setup tasks
  • download the Apache httpd server ( msi install
    • install the server, accept the defaults
    • at this point you can check the install by browsing to http://localhost/ or
    • if Apache fails to run it may be because another application, eg skype, is listening on port 80, in this case
      • change the directive Listen in the Apache http.conf to read Listen (where is your server's IP address)
  • download PHP 5 ( msi install
    • install PHP, accept the defaults
    • in php.ini make the following optional changes
      • enable the glib extension (set extension=php_gd2.dll)
      • double the default max memory size
      • consider increasing the max cpu time from 30 to 45 seconds

install PmWiki

  • create the directory x:\home\wiki\
  • download PmWiki ( (this wiki is version pmwiki-2.2.139, the current beta version is recommended)
    • open the PmWiki zip file and copy the contents of the \pmwiki\ directory into the \wiki\ directory
    • create directory x:\home\wiki\pmwiki\pub\skins\wiki and add pmwiki.tmpl and pmwiki.css to it
    • add file config.php to folder \pmwiki\local\
  • optionally add wiki to the hosts file in folder \WINDOWS\system32\drivers\etc\

set up web server

  • check the following lines are in the apache \conf\config.http file (they should be there from the PHP install)
AddType application/x-httpd-php .php
PHPIniDir "x:Program FilesPHP\"
LoadModule php5_module "x:Program FilesPHPphp5apache2_2.dll"
  • put the following lines into the apache \conf\extra\httpd-vhosts.conf file
    ServerName wiki
    <Directory "x:/home/wiki/public_html">
      AllowOverride FileInfo AuthConfig Limit Options
      Options Includes FollowSymLinks
      Allow from all
    DocumentRoot "x:/home/wiki/public_html"
  • in the /public_html/ directory create the file index.html with the contents <!--#include virtual="/pmwiki/pmwiki.php" -->
  • check the following lines are uncommented in the apache \conf\config.http file
    AddType text/html .html
    AddOutputFilter INCLUDES .html


  • restart the apache server
  • open browser and enter http://wiki/
See also
Pm Wiki usage

fixed IP addresses

By default, chances are that your home network is configured using DHCP so that IP addresses are allocated automatically, and your modem or router will supply your PC's IP address. Once you have more than one computer in your home network, or if you wish to use your wiki as an external website, a fixed IP address is recommended for the computer running the web server. There are advantages in doing this

  • one day your IP address will change, because the router is powered off long enough to loose its configuration, or it simply assigns a changed IP address, and you will wonder where your web site went.
  • your can specify a hostname for a machine on your network and associate it with your fixed IP address in the hosts file

To set a fixed IP address on a Windows system try

  • Control Panel | Network Connections | Local Area Connection
    • choose properties then on the General Tab scroll down to Internet Protocol (TCP/IP) and choose properties
    • set to addresses as specified by your ISP, choosing any fixed IP address outside te range allocated by your router

Page last modified on 2012 Jul 29 14:55

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject=KiwiWiki: Wiki Setup&Body=From KiwiWiki: Wiki Setup (//kiwiwiki [period] co [period] nz/pmwiki/pmwiki [period] php/Aotearoa/WikiSetup) - How this wiki was set up