# Install PmWiki ## Overview [PmWiki](/https://www.pmwiki.org) is a simple and lightweight wiki that doesn't require a database. Instead, content for the wiki is stored in simple text files. Its only requirement is PHP, making it very simple to host with OpenBSD's openhttpd. It also does not require the user's browser to support javascript, which helps improve accessibility. ## Install [Download a copy](https://www.pmwiki.org/wiki/PmWiki/Download) of PmWiki. In this guide, we'll grab [[the latest stable release](/https://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz). [Download a copy](https://www.pmwiki.org/wiki/PmWiki/Download) of PmWiki. In this guide, we'll grab [[the latest stable release](/https://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz). $ ftp https://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz $ tar xvzf pmwiki-latest.tgz $ doas mv pmwiki-2.2.141/ /var/www/htdocs/wiki.example.com $ doas chown -R www:daemon /var/www/htdocs/wiki.example.com Make sure to replace wiki.example.com with your actual domain name. For flexibility, we recommend you run your own nameserver using [nsd](nsd/configure) and [[create a records](/nsd/zone) for wiki.example.com. Make sure to replace wiki.example.com with your actual domain name. For flexibility, we recommend you run your own nameserver using [nsd](nsd/configure) and [[create a records](/nsd/zone) for wiki.example.com. ## Configure OpenHTTPd Before you begin, make sure you have [PHP installed](/php/install). Next, add a new block to `/etc/httpd.conf`: server "wiki.example.com" { listen on * port 80 root "/htdocs/wiki.example.com" location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } location "*.php" { fastcgi socket "/run/php-fpm.sock" } directory { index "index.php" } connection max request body 104857600 } Lines 7-8 above tell httpd to evaluate any file that ends with .php as a PHP script. Line 9 says that the document root for the web files is /htdocs/wiki.example.com. Keep in mind, however, that httpd automatically chroots to /var/www/, so the actual path will be /var/www/htdocs/wiki.example.com/. Line 11-13 tell httpd to automatically serve index.php as the default file when a directory is requested by the user. In other words, if a user requests `https://wiki.example.com`, he will actually receive `https://wiki.example.com/index.php`. Line 14 tells httpd that it can receive uploads as large as 100MB. By default, httpd is limited to only 1MB, so this setting is necessary if you want to allow large file uploads for your wiki. While not required, it helps to put in /var/www/htdocs/wiki.example.com/index.php: " && cd ~/almanack && got commit -m "Daily backup" && sleep 360 && got add -R ~/almanack Replace $USER and `username@example.com` with your real username and email. ## Forking IRCNow To fork the IRCNow almanack: $ git clone git://got.ircnow.org/almanack