PureWiki is designed to run efficiently on standard web hosting environments. You don't need expensive servers or complex infrastructure like databases or Node.js.

Note for End-Users:
Don't worry about the technical details below. PureWiki runs on 99% of all shared web hosting providers (like Strato, IONOS, GoDaddy, HostGator). The required PHP settings are almost always pre-configured for you.

Software Prerequisites

PHP Version:
8.1 or higher is required. Most modern hosts provide this by default or allow you to switch in your control panel.

Required PHP Extensions

Web Server (Apache or Nginx)

PureWiki uses a single entry point (index.php). Your web server needs to redirect requests to this file if they don't point to an existing image or file.

On Apache, the included .htaccess takes care of the rewrites and blocks access to internal paths. For local development, start the PHP built-in server with php -S localhost:8000 router.php. The router.php mirrors the rewrite rules.

Nginx Recommendation

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
}

# Block internal directories
location ~ ^/(config|cache|backups|purewiki/admin|purewiki/core|purewiki/api|purewiki/lang|purewiki/data|purewiki/extern|purewiki/frontend)/ {
    deny all;
    return 404;
}

# Block data files and hidden files
location ~ \.(md|json|log|sh|ini|env|bak|swp|lock)$ {
    deny all;
    return 404;
}

location ~ /\.(?!well-known).* {
    deny all;
    return 404;
}

The file nginx.conf.example in the PureWiki root contains a complete server block.

Storage Consideration

Ensure the web server user has read/write permissions for directories like /pages, /config, /cache and /backups. This allows the wiki to save your work.