Configuration
The defaults in /etc/default/devmagic.conf: where sites, vhosts and certificates go, and the database and admin accounts.
devmagic reads its defaults from /etc/default/devmagic.conf. Write or change
them with the config wizard, which shows each value and lets you keep it:
devmagic --config-wizard
The settings
| Key | What it sets | Default |
|---|---|---|
WEB_DIR |
Where site folders go | /var/www |
APACHE_SITES_AVAILABLE |
Where vhosts go | /etc/apache2/sites-available |
CERTS_DIR |
Where site certificates go, one folder per domain | /etc/ssl/localcerts |
CERTS_ISSUER_DIR |
Where the local CA lives | /etc/ssl/localcerts/cert-issuer |
WP_DB_HOST |
The database server | localhost |
WP_DB_USER |
The database user | root |
WP_DB_PASSWORD |
The database password | set it in the wizard |
WP_DB_PREFIX |
The table prefix | wp_ |
WP_ADMIN_USER |
The admin made on a fresh install | admin |
WP_ADMIN_PASSWORD |
Its password | set it in the wizard |
The defaults that come with devmagic are meant for a machine of your own: set your own database and admin passwords in the wizard before the first site.
Living with devmagic-panel
devmagic-panel reads what devmagic makes from these same places: sites in
/var/www/<domain>, vhosts as <domain>-ssl.conf, certificates in
/etc/ssl/localcerts/<domain>. Keep the folder defaults if you use both, and
the panel lists every devmagic site.