Install the Software (CLI)

Basic Setup | Install the Software (CLI) | Install the Software (FTP) | Set the Passwords

Installation requires fewer than twenty commands. There's no database to worry about because PmWiki writes your pages into "page files" in the pagestore directory (wiki.d/).

half-meg of archive files

You'll download four archive files, totaling about 1/2 megabyte in size.

The installation log is for a webserver running Linux/BSD/macOS. Log in via SSH or use a terminal app to type in the commands. You can also install the software via SFTP or FTP.

The current PmWiki version is shown on the download page.

Installation Log

 

 (Printable)
## Change to the web document root's directory
cd www/   # http://www.example.com/ points to this directory
## Get pmwiki 
wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz
## Unpack the archive
tar -zxvf pmwiki-latest.tgz
## Rename the directory. "site" and "content" are good name choices
mv pmwiki-2.2.98 site   # note: the PmWiki version may be different
## Change to the wiki's local directory
cd site/local/
## Get the CMS Mode recipe, QuickWikiCMS recipe, and Adapt Skin
wget http://haganfox.net/pmwfiles/CMSMode-latest.tar.gz
wget http://haganfox.net/pmwfiles/QuickWikiCMS-latest.tar.gz
wget http://haganfox.net/pmwfiles/AdaptSkin-latest.tar.gz
## Unpack the recipes and skin
tar -zxvf CMSMode-latest.tar.gz -C ../   # extract to main directory
tar -zxvf QuickWikiCMS-latest.tar.gz -C ../   # extract to main directory
tar -zxvf AdaptSkin-latest.tar.gz -C ../pub/skins/   # ex. to pub/skins/
## Rename the index file so we can use it
mv ../index-CMS-php.txt ../index.php   # It's /index.php now
## Rename the configuration file so we can use it
mv config-CMS-php.txt config.php
## Set temporary permissions on the site/ directory
chmod 2777 ../   # writable with setgid; ../ is the site/ directory
##
## Visit your site's URL with your browser. PmWiki will create
## wiki.d/ (the pagestore directory) and uploads/ on the first visit.
##
## Remove temporary permissions
chmod 0775 ../   # reset permissions
chmod g-s ../   # make sure setgid is off
vi config.php   # or maybe: pico config.php

If the "temporary permissions" part seems like too much hassle, you can create wiki.d/ and uploads/ directories and give them 777 (world-writable) permissions instead. (Not recommended in a shared hosting environment.)

Next: Set the Passwords

Page last modified on March 18, 2017, at 11:56 PM
Powered by: PmWiki and Quick Wiki CMS