Install
Install devmagic-panel from its releases or a checkout, the installer's options, every step it takes, and your first login.
- Runs on
- Ubuntu or Debian (Mint works), with sudo rights and curl; or Windows 10 and 11 through WSL 2
- Package
- About 11 MB, built and checked by GitHub; nothing is built on your machine
- Access
- Any way to read the repository; no token
- Logs
~/.local/state/devmagic-panel/logs/install-<date>.log
On this page
The short command on this site downloads the installer and shows what it would change:
curl -fsSLO https://webtimeless.cloud/devmagic-panel.sh && bash devmagic-panel.sh --dry-run
webtimeless.cloud/devmagic-panel.sh redirects to the newest release's
get.sh on GitHub, so it is the first command under
Install from the releases.
On Windows 10 or 11 you need none of this page: the Windows setup installs the panel in WSL 2 and does the Windows side too, from one window.
Requirements
You need Ubuntu or Debian (Mint works), sudo rights and curl. On Windows 10 22H2 or 11 with virtualization on, the panel runs in Ubuntu under WSL 2 (see Windows). The installer checks the rest first, and installs what is missing after asking.
| Group | What | How the installer asks |
|---|---|---|
| Required | Apache with PHP 8.1+ and the WordPress modules, MySQL (MariaDB on Debian), OpenSSL, libnss3-tools, curl, git, unzip, WP-CLI, Node.js 22.13+ |
One question; --yes installs them |
| Recommended | Composer, Imagick, Mailpit, PHP-FPM where mod_php runs | Asked, yes by default |
| Optional | Xdebug, phpMyAdmin, nginx | Asked, no by default |
| Installs from an org | GitHub CLI, rclone, Claude Code | One question, no by default; you sign in to each |
| GitLab groups | GitLab CLI (glab 1.36 or newer) |
Reported only, never installed |
Without Node.js, the installer offers the official Node.js 22 build for the
panel only (see PHP and Node.js). The GitLab CLI comes from
sudo apt install glab where apt has it (Ubuntu 24.04 and later, Debian 13),
and from GitLab's install page elsewhere.
Aura's Machine checks look at the same parts later, and mark each as required, recommended or optional.
Install from the releases
This is the recommended way. The package holds the built panel, its runtime dependencies, the root scripts and the installer.
-
Pick the command that fits your access to the repository:
# The repository is public: no login at all. curl -fsSLO https://github.com/PetyoLazarov92/devmagic-panel/releases/latest/download/get.sh && bash get.sh --dry-run# You are signed in to the GitHub CLI (gh auth login) with access to it. gh release download -R PetyoLazarov92/devmagic-panel -p get.sh && bash get.sh --dry-run# Your SSH key can read it: the pkg/latest branch holds the newest package. git clone --depth 1 --branch pkg/latest git@github.com:PetyoLazarov92/devmagic-panel.git devmagic-panel-pkg && bash devmagic-panel-pkg/get.sh --dry-run -
Read the dry run: it lists every change and changes nothing.
-
Run the same script without
--dry-runto install:bash get.sh, orbash devmagic-panel-pkg/get.shafter the clone. -
Answer the installer's questions (see what the installer does).
-
Restart your browsers, so they load the new local CA.
-
Log in at
https://local.devmagic.
What get.sh does
get.sh finds the newest release, gets devmagic-panel-<version>.tar.gz and
its checksum, checks it, and runs that release's install.sh. It reaches the
package the same way your command did: public HTTPS, the GitHub CLI or git
over SSH.
--version v0.7.0installs that release instead of the newest.--repo owner/nameworks with a fork or a moved repository.- Cloned from
pkg/latest, it installs the package next to it, with no download.
Install from a checkout
git clone git@github.com:PetyoLazarov92/devmagic-panel.git ~/projects/devmagic-panel
cd ~/projects/devmagic-panel
./install.sh --dry-run
./install.sh
The installer builds the commit you have checked out into a release in a
temporary folder, the way GitHub does (npm run package), and installs that.
It is named v0.6.0 at a release tag, and v0.6.0-dev.1a2b3c4 between
releases.
Uncommitted changes are not in it, so commit them first. The running panel never uses the checkout, so you can change it, switch branches or rebuild freely.
Installer options
./install.sh # interactive install
./install.sh --dry-run # print what would change, change nothing
./install.sh --yes # install what the panel needs, skip the rest
./install.sh --skip-optional # do not offer recommended or optional components
./install.sh --uninstall # remove the panel; add --dry-run to see what first
--yes and --skip-optional skip all but the required parts. The
uninstall has a page of its own.
--from-panel
This one is for the panel's Updates page, not for you. It updates an installed panel with the sudo password on stdin, answers every question with its default, and runs as one transaction.
- It keeps the root scripts,
config.envand the sudoers rule, swaps the new root scripts in whole, and backs up certs, vhosts and hosts. - Once the panel restarts, it checks that it answers with the new version.
- When a step fails, everything is put back: the old root scripts,
config.env, the sudoers rule and the backup, and the release before, restarted.~/.local/share/devmagic-panel/update-status.jsonsays what happened.
Note The sudo password stays in the installer's memory only: never in a file, a log or a command line.
What the installer does
- Checks what the panel needs, found or missing, before it changes anything, and installs what is missing (see below).
- Writes
/etc/devmagic-panel/config.envwith the paths it detected. - Puts the release in
~/.local/share/devmagic-panel/releases/<version>, as it is, or built from the checkout. - Installs the root scripts from that release to
/usr/local/lib/devmagic-panel, and a sudoers rule that allows onlydmp-rootandwpcorewithout a password. - Backs up
/etc/ssl/localcerts, the Apache vhosts, nginx's sites when nginx is installed,/etc/hostsand the system CA folder to~/devmagic-panel-backups/. - Enables the Apache modules it needs:
ssl,rewrite,headers,proxy,proxy_httpandproxy_wstunnel. - Creates a new local CA and trusts it in the system, Chrome, Edge and Firefox (Chrome and Edge share one store).
- Offers to reissue the certs of existing sites from the new CA, covering
every name in each vhost. The old devmagic
LocalhostCAstays trusted until you remove it from Aura's Machine checks. - Sets up
https://local.devmagic, asks for a panel password and your MySQL admin account, and starts the panel (see below). - Sets nginx up next to Apache, when you said yes to it.
- Installs Mailpit, when you said yes to it.
- Writes the list of everything it put on the machine to
/var/lib/devmagic-panel/installed-files(root-owned, readable by all): each path, what it is, and whether an uninstall removes it, asks, or keeps it.
Warning
~/devmagic-panel-backups/holds private keys, so it is readable only by you.dmp-restoreputs a backup back: see Undo and backups.
What it installs and asks about
- Required, after one question: Apache with PHP and the WordPress
modules, MySQL (MariaDB on Debian; one already there stays), OpenSSL,
libnss3-tools, curl, git, unzip, WP-CLI and Node.js 22.13+. No to a required part stops the install and prints the apt command. - Recommended, yes by default: Composer, Imagick, Mailpit (the panel's own copy, as on the Services page) and, where mod_php runs, PHP-FPM so a site can have its own PHP.
- Optional, no by default: Xdebug, phpMyAdmin and nginx.
- For installs from an organization, one question, no by default: the GitHub CLI, rclone and Claude Code. Signing in to them stays yours; the installer prints how. The GitLab CLI is reported with where to get it, and never installed.
It warns about PHP older than 8.1, and with --yes about an nginx that is
installed but not set up.
PHP and Node.js
On a new machine, PHP runs through PHP-FPM: the panel's handler sends every site's PHP to it, and Apache runs on mpm_event. A machine with mod_php keeps it until you switch on the Server and PHP tab.
Without Node.js, the installer offers the official Node.js 22 build from
nodejs.org, checked against its checksums. It goes in
~/.local/share/devmagic-panel/node, for the panel only, so switching nvm
versions never breaks the panel.
The panel, its service and MySQL
- The MySQL account. When no account you have signs in (on a new MySQL or
MariaDB, root signs in only through sudo), it can make one for the panel,
devmagic_panel@localhost, withsudo mysql. Its generated password is kept only in the panel's secrets file. - The read-only account. It also makes
devmagic_panel_ro, which the SQL runner uses. - The service. It points
~/.local/share/devmagic-panel/currentat the release and starts a systemd user service that runs whatevercurrentpoints at. - Releases. The release before stays for switching back; the newest three
stay. A v0.5 install's clone in
~/.local/share/devmagic-panel/appgoes. - Lingering. It offers to keep the service running after you log out
(
loginctl enable-linger), so a running install or import is not cut off.
nginx next to Apache
nginx is installed in an apt-get of its own once Apache holds port 80, so the
package leaves it stopped. An nginx already installed is offered the setup
only. The setup (dmp-root nginx-setup):
- moves Apache's
ports.conffrom every address to127.0.0.1, keeping the original in/var/lib/devmagic-panel/nginx; - turns Debian's default nginx site off;
- puts the panel's settings in
/etc/nginx/conf.d/devmagic-panel.conf; - has nginx answer on
127.0.0.2.
Once nginx is set up, every later run writes those settings again. How the two servers share the sites is in your existing setup.
Under WSL 2
In a distro under WSL 2, the installer also gets it ready for Windows: WSL
stops rewriting /etc/hosts, Apache stays on 127.0.0.1, lingering is on
with no question, and Mailpit installs with --yes too. It refuses WSL 1, a
distro without systemd and sites on a Windows drive. The details are in
what the installer changes in the distro.
An encrypted home folder
On a home folder encrypted with eCryptfs, which unlocks only when you log in,
systemd cannot start your user services at boot or login. The installer then
also writes ~/.config/autostart/devmagic-panel.desktop, so your desktop
starts the panel and Mailpit once you log in. Aura's Machine checks look for
it and add it in one click.
Run it again
Run the installer again any time, as
~/.local/share/devmagic-panel/current/install.sh. It skips what is already
done.
Every run is logged to ~/.local/state/devmagic-panel/logs/install-<date>.log,
and the newest 20 logs stay. Passwords never reach the log: sudo asks on the
terminal itself, and the panel's own questions run outside it.
Log in
Open https://local.devmagic and log in with the panel password you set
during the install. The login page greets you by your computer account, warns
when Caps Lock is on, and counts down after too many wrong tries. It also says
when this browser last signed in, which is kept in the browser only.
Change the panel password
Change it on Settings, or with Change the panel password in Ctrl+K. It asks for the current one, and every other browser is signed out.
New passwords need 8 characters or more, with no rules about capitals or symbols. The most common passwords, and your user name with digits, are refused.
Forgot your password?
Forgot your password? on the login page resets it with the password you log in to this computer with. sudo checks it, the panel never keeps it, and 5 wrong tries lock the reset for an hour.
Or set a new one in a terminal:
node ~/.local/share/devmagic-panel/current/server/dist/cli.js set-password
Set up the password and MySQL again
setup asks for the panel password and the MySQL admin account again:
node ~/.local/share/devmagic-panel/current/server/dist/cli.js setup
setup --yes does the same without questions, as the Windows setup runs it.
The new panel password is the first line on stdin, never a command line
argument, and --keep-password keeps the current one instead. It uses the
saved MySQL account when that still signs in, and otherwise makes the panel's
own with sudo mysql.
When the installer put Node.js in place for the panel, use
~/.local/share/devmagic-panel/node/current/bin/node instead of node in
both commands.
Checked against devmagic-panel 1.70.0.