From SophWiki

PmWiki: Installation

Here are some quick instructions on how to download and install PmWiki 2.0. Improvements to these instructions would be greatly appreciated. Note that PmWiki 2.0's installation procedure has not been tested on as many platforms as PmWiki 1.0, so there may be some glitches still. (Just report any problems you encounter to the pmwiki-users mailing list? or the PmWiki Issue Tracking System.)

Windows/IIS users may wish to take a look at InstallationWin32? for more help with installation.

1. Download the latest version of PmWiki from http://www.pmwiki.org/pub/pmwiki-devel/.

2. Extract the tar image using "tar zxvf pmwiki-''version''.tgz" (note that the tar file has to be extracted with the proper permissions set... see the note at the end of this page for more.). This will create a pmwiki-x.y.z directory which contains the PmWiki software. Rename this directory to "pmwiki" by executing "mv pmwiki-x.y.z pmwiki" . The files in this directory include:

    COPYING            The GNU General Public License
    local/             A directory for local configuration scripts
    pmwiki.php         Main PmWiki script
    pub/               Directory of publicly accessible files
      css/             Directory for generic .css files
      skins/           Directory of layout templates?
    sample-config.php  A sample configuration file
    scripts/           Some scripts that extend the possibilities of PmWiki
    wikilib.d/         Directory containing some default PmWiki files

These files need to be placed where they can be accessed by a web server (e.g. in a public_html directory of some sort).

3. Open a web browser to the pmwiki.php script. PmWiki will then attempt to create the wiki.d directory for holding wiki pages with the appropriate ownerships and permissions. This step will likely fail, but if it works then you can proceed to step 4 below.

3a. If you get an error message stating that PmWiki is unable to create the wiki.d directory, you need to temporarily change the permissions on the directory containing the pmwiki.php file to 2777. In Unix this is commonly done by changing to the directory containing pmwiki.php and executing the command "chmod 2777 ." (note the dot at the end). This will (1) make the directory writable so the web server can create the data directory it needs for the wiki files, and (2) preserve group ownership of the directory so the installer account can manipulate the files created in this directory.

3b. If your system doesn't allow changing permissions to 2777, then try 777 permissions instead.

3c. After changing the directory permissions, try opening a browser to the pmwiki.php script again. If all is well, the wiki.d directory will have been created and you'll see the default home page.

4. If you're running Apache version 2.0.30 or later, you may need to set the AcceptPathInfo directive to "on" for the pmwiki.php script. This can be as simple as adding

    AcceptPathInfo on

to either the .htaccess file in the directory containing pmwiki.php or the server's httpd.conf file. If changing the httpd.conf file, don't forget to restart Apache to have the change take effect.

For more on this issue, see AcceptPathInfo?.

5. Check out InitialSetupTasks for other tasks you may want to perform to begin customizing your PmWiki installation. You might also want to peruse the ReleaseNotes for further information.

(Note: It is important that the tar file (*.tar) is unpacked with the proper permissions set. For *nix operating systems, please check your permission mask by typing umask at the command-line. If it says anything other than "2", you'll need to change the permission mask by typing umask 002 at the command-line. Then unpack the tar file. If you do not do this the pmwiki.php script will not be able to make use of other files in the tree.)

<< PmWiki | PmWiki.DocumentationIndex | Initial setup tasks >>

Retrieved from http://sophana.free.fr/pmwiki2/index.php5/PmWiki/Installation
Page last modified on October 01, 2004, at 04:56 AM