Blog

Install AI Hosting Panel on Linux, Windows or an Android phone

The one-command install for AI Hosting Panel on Ubuntu, Debian, AlmaLinux, Rocky Linux, Fedora, Linux Mint, Windows Server and Android (Termux), with what the installer prints and how to check that the panel answers.

Install AI Hosting Panel on Linux, Windows or an Android phone

2026-11-24

AI Hosting Panel installs with one command on each platform. This guide gives the command for each one, what the installer does in order, what you see on the screen, and how to check that the panel answers. Every platform below was installed on a fresh system with release 1.2.49.

Before you start

Linux: a fresh server with root or sudo access. We tested on virtual machines with 2 GB of RAM and 2 CPU cores. The installer downloads the panel from aihostingpanel.com and starts a free licence on first run, so the server needs internet access.

Windows: Windows Server 2022, with PowerShell opened as administrator.

Android: Termux and Termux:Boot installed on the phone. The panel runs inside Termux. Docker runs on Linux and Windows servers, not on the phone.

Linux: Ubuntu, Debian, AlmaLinux, Rocky Linux, Fedora or Linux Mint

Run this command on a fresh server, as root or with sudo:

curl -fsSL https://aihostingpanel.com/install.sh | sudo bash

The installer prints each step as it runs: the packages, PostgreSQL, the mail server, the web server and the panel service. The package step takes the longest. Let the command finish and do not close the terminal before it does.

After the Linux install: create the first administrator

The installer ends by printing the command that creates the first administrator. The password is typed at a prompt and never placed on the command line. Replace ADMIN and EMAIL with your own user name and email address:

read -rs PW && printf '%s\n' "$PW" | (set -a; . /etc/aihostingpanel/aihostingpanel.env; set +a; node /opt/aihostingpanel/api/dist/cli.mjs create-admin --username ADMIN --email EMAIL)

Check that the API answers. The panel uses a self-signed certificate on a server IP until you add a domain and a real certificate:

curl -sk https://127.0.0.1:2087/api/v1/health

A healthy install answers with status ok and the version number. If the answer says warning, check whether the server asks for a restart: a pending kernel update does that, and the status returns to ok after the restart.

Windows Server 2022

Open PowerShell as administrator and run:

irm https://aihostingpanel.com/install.ps1 | iex

The installer sets up PHP, nginx, PostgreSQL, MariaDB, the mail server and the panel service, then checks the API. Docker, in WSL 2, is optional. If it cannot be set up, the panel still installs, and the installer prints a warning that says what failed. Fix the cause and run the same command again, or restart Windows first when it asks for a restart.

Running the command again on an installed server upgrades it. The installer keeps the licence and the keys from the first run.

Android phone: Termux

Install Termux and Termux:Boot, open Termux and run this command:

curl -fsSL https://aihostingpanel.com/install-android.sh | bash

The installer asks how people will reach the phone (mobile data, Wi-Fi through a router, or a Cloudflare Tunnel), whether to add PHP and FTP, whether to add MariaDB, and whether to add a mail server. You can answer these in advance with environment variables, for example AIHOSTINGPANEL_ROUTE=mobile, AIHOSTINGPANEL_PHP=1, AIHOSTINGPANEL_FTP=0, AIHOSTINGPANEL_MARIADB=0 and AIHOSTINGPANEL_MAIL=0.

The end of the Android installer in Termux on a phone
The installer's summary after a fresh install on an Android phone, with the panel address and the next steps.

After the install, open Termux:Boot once. It can start the panel again after a restart, but some phones block it. On those phones, start the panel by hand: open Termux and run bash $HOME/aihostingpanel/bin/start.sh. Turn off battery optimisation for Termux and Termux:Boot. Android stops background apps to save battery, and a stopped Termux stops the panel with it.

A health check of the panel and the MariaDB log in Termux
The health check returns status ok with the version, and the MariaDB log shows that the database finished its setup.

If the install stops

The installer stops with a message that says what failed, and it does not report the panel as installed. Fix the cause shown and run the same command again. The installer can run again safely: it reuses the licence and the keys from the first run.

What we tested

Ubuntu 24.04 and 22.04, Debian 13, AlmaLinux 9, Rocky Linux 9, Fedora 45 and Linux Mint 22.3 were installed fresh with the Linux command, and each passed the same checks: the services run, the health check answers, an administrator can sign in, and the account API creates an account. Windows Server 2022 was tested as an upgrade from release 1.2.48 to 1.2.49 and passed 17 of 17 installed-panel checks. An Android phone running Android 10 was installed fresh with the Termux command.

All posts