Repository navigation
Production Overview
This section installs KeyAnyWhere on a server, for real use, reachable over HTTPS on your own domain. This page is the map of the path: it lists the decisions to make before you start and the pages to follow, in order. Each page ends with a link to the next one.
A few choices shape the rest of the installation. Make them now so you don't have to go back.
-
The domain, for example
kaw.example.com, already pointing (DNSA/AAAArecord) to the server. HTTPS is mandatory, and the certificate needs the domain. -
The server: a Debian 13 machine with
sudo, sized as in Requirements. The database can live on the same machine (the path below) or on another one. - Where the secrets are kept outside the server. The encryption key protects every stored password: if you lose it, the data cannot be read again, not even from a backup. Pick now the safe place (an offline password manager, a printed copy in a safe) where you will keep a copy of it.
Follow these pages in order. Each one assumes the previous ones are done.
- Preparing the Server: system packages and PostgreSQL.
- Installing KeyAnyWhere: code and dependencies.
- File Permissions: who may read and write each folder.
- Generating Security Keys: what the three secrets protect.
-
Environment Variables: the file with the secrets and the database access, and the
kaw-cakecommand that runs the CakePHP CLI with it. -
Configuration Files: what goes in
config/app_local.php, and whyconfig/app.phpis never edited. - Database Setup: the tables.
- Insecure Password Catalog: about a million leaked passwords used to warn your users.
- Web Server and HTTPS: Apache, the certificate and the site.
- First-Run Setup: the administrator account and its second factor.
The commands use fixed paths so they can be pasted as they are. If you choose different ones, change them in every block.
| Path | What it holds |
|---|---|
/var/www/keyanywhere |
The application (Git clone). |
/var/www/keyanywhere/webroot |
The only folder Apache serves. |
/etc/keyanywhere/keyanywhere.env |
Secrets and database access (environment variables). |
/usr/local/bin/kaw-cake |
Runs the CakePHP CLI (bin/cake) with the variables above. |
Source code · Issues · Releases · Packagist · Online demo · Hosted edition
1. Getting started
2. Installing in production
- Overview
- Preparing the Server
- Installing KeyAnyWhere
- File Permissions
- Generating Security Keys
- Environment Variables
- Configuration Files
- Database Setup
- Insecure Password Catalog
- Web Server and HTTPS
- First-Run Setup
3. Operating your installation
4. Using KeyAnyWhere
5. Security
6. Development
7. Extending