Install alxpanel
From a clean AlmaLinux 10 server to the panel's sign-in page.
Before you start
alxpanel takes over the web, database, FTP and firewall setup of the server, so it wants a server that hosts nothing yet:
- AlmaLinux 10 on x86_64, with root access.
- Internet access to the AlmaLinux, EPEL and Remi repositories. The install adds EPEL and Remi itself.
- Nothing listening on ports 80, 443, 8443, 21 or 8080. nginx serves the sites on 80 and 443, the panel listens on 8443, FTP on 21, and Apache sits behind nginx on 127.0.0.1:8080.
- No other database server on port 3306. An existing MariaDB is accepted only when root logs in over its socket without a password.
- No other program on port 5432. The panel keeps its own data in a local PostgreSQL; an existing
postgresql.serviceis accepted and reused. - No nginx site declared
default_serverin/etc/nginx/conf.d/. /srv/hostingempty, or mounted with project quotas. See Customer storage if you want the sites on their own partition.- No local users or groups with ids 10000 to 59999. Every hosting account gets an id in that range.
The install checks all of this before it changes anything. If something is in the way, nothing of alxpanel is installed, and the output says what to fix:
alxpanel: alxpanel was NOT installed: this server is not ready for alxpanel:
alxpanel: - port 80 is in use by nginx (pid 912, nginx.service): alxpanel's nginx serves the hosted sites on ports 80 and 443; stop and disable it ('systemctl disable --now nginx.service') or move it to another port.
dnf will already have installed the dependencies (web, database and FTP servers, PHP, firewalld) by then. dnf history undo last removes them again; or fix the reasons and run dnf install alxpanel once more.
Installing anyway
touch /etc/alxpanel-preflight-skip
With this file present, each reason becomes a warning and the install goes on. Use it only when you know why the check is wrong for your server: the install will reconfigure whatever it found.
Install
As root:
dnf install -y https://repo.balcon.od.ua/alxpanel-release.rpm
dnf install -y alxpanel
The first command adds the alxpanel repository and its signing key, plus the EPEL and Remi repositories. The second installs everything and sets the server up. Keep them as two commands: the sign-in details are printed last only when the first one has finished before the second starts.
What the install does
- Creates the customer storage at
/srv/hosting. Without a partition of your own mounted there, it creates a 20 GB image file that can grow later. - Installs and starts nginx, Apache, MariaDB, PHP, ProFTPD and PostgreSQL, on alxpanel's configuration. A web or database server that was already running is restarted onto that configuration.
- Opens ports 80, 443, 8443, 21 and 30000 to 30099 in firewalld's default zone. If firewalld is not running, the rules are saved for when it starts, and it is not started for you.
- Turns on fail2ban for SSH, FTP and panel sign-ins, and never bans the address you installed from. A fail2ban setup of your own is left as it is.
- Loads its SELinux policy, when SELinux is on.
- Creates the administrator
adminwith a one-time password.
First sign-in
The last thing dnf prints, below Complete!:
==========================================================================
alxpanel is ready
URL: https://203.0.113.10:8443/admin
Login: admin
Password: k7RwTq3mVx9NpL2cHd8Z (one-time: you choose a new one at first sign-in)
The certificate is self-signed; your browser will warn once.
Lost this? Run 'alxpanel-setup' as root for a new password.
Login protection: fail2ban is starting with the sshd, proftpd and alxpanel-auth jails.
Never banned: 198.51.100.7 (the address you installed from)
==========================================================================
Open the URL, accept the browser's warning about the self-signed certificate, and sign in. The panel then asks for your email address and a password of your own before anything else.
Two more blocks can appear in that output:
- Check: things the install saw and did not change, such as another firewall, SELinux switched off, or an sshd that restricts logins. First-day problems explains each.
- Warnings during the install: steps that did not go through. The same lines are in
journalctl -t alxpanel.
If the output says alxpanel is installed, but with problems, it names each problem and the command that shows more. Fix them and run alxpanel-setup.
Lost the password?
alxpanel-setup
As root, at any time. It prints the address and a new one-time password for admin.
Next
First steps in the panel: a plan, an account, and three settings worth switching on.