Shared hosting (Apache).
Inkdocs runs on any host with PHP 8.2+. The included public/.htaccess makes Apache serve cached pages directly.
Steps
- Upload the project, including
vendor/. Runcomposer install --no-devfirst if you built it yourself. - Set the domain’s document root to the
public/folder. - Make
public/cache/writable by PHP. - Visit the site. Each page is rendered once, then served from cache.
If your host won’t let you change the document root, upload the contents of
public/intopublic_html/, put everything else one level up, and change$rootat the top ofindex.phpto point at it.
Updating content
After changing Markdown on the server, rebuild the cache:
php bin/inkdocs cache:warm
No SSH? Use the host’s cron or terminal to run the same command, or delete the public/cache/ folder. Pages regenerate on the next visit.
With
cacheon, edits don’t appear until the cache is rebuilt. While writing directly on a live server, set'cache' => falseinconfig.php.
Check that the cache is used
curl -sI https://docs.example.com/getting-started/installation
A page served by Apache from cache has no X-Inkdocs-Cache header. One served by PHP shows HIT (PHP fast path) or MISS (just rendered).