Files and switches
Where alxpanel keeps its configuration, data and logs, and which files are yours to edit.
Switches
| File |
Effect |
/etc/alxpanel-preflight-skip |
When this file exists, a first install goes ahead on a server that is not clean; each reason becomes a warning. Only its existence matters. See Before you start. |
The repository
| File |
What it is |
/etc/yum.repos.d/alxpanel.repo |
The alxpanel repository and the channel this server follows. Change the channel on the Panel updates page, not here. A file you edited is kept on updates; the new version lands beside it as alxpanel.repo.rpmnew. |
/etc/yum.repos.d/alxpanel-thirdparty.repo |
The EPEL and Remi repositories that alxpanel's dependencies come from. |
/etc/pki/rpm-gpg/RPM-GPG-KEY-alxpanel |
The key that signs the packages. See Verifying packages. |
All of these come from the alxpanel-release package.
Configuration
| File |
What it is |
/etc/alxpanel/agent.toml |
The agent's settings. Kept on updates. An unknown key stops the agent from starting. |
/etc/alxpanel/panel.env |
The panel's settings: its address, its database, its secret key. Kept on updates. |
/etc/alxpanel/panel.crt, panel.key |
The panel's certificate. Self-signed after the install; replaced when you issue one on the Panel TLS page. |
agent.toml
The settings an administrator is most likely to change:
| Key |
Default |
Meaning |
root_cron |
true |
false refuses cron jobs that run as root, and disables the existing ones when the agent next starts. |
ssh_session_max_minutes |
720 |
The longest one customer SSH or SFTP session may last. 0 is unlimited. |
acme_orders_per_hour |
50 |
The most certificates, new and renewed, the server requests per hour. 0 is unlimited. |
op_timeout_seconds |
120 |
How long one agent operation may take. |
Restart the agent after a change: systemctl restart alxpanel-agent.
panel.env
| Key |
Meaning |
APP_URL |
The panel's own address, used in links it generates. |
APP_KEY |
Generated at install. Losing it makes the data the panel stores encrypted unreadable. Keep a copy with your backups. |
DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD |
The panel's own database. See alxpanel-provision-db. |
Files of yours that updates never touch
alxpanel owns several system configuration files and restores them on every update. Each has a companion that is yours:
| alxpanel's file, restored on update |
Put your own settings in |
/etc/ssh/sshd_config.d/90-alxpanel.conf |
/etc/ssh/sshd_config.d/80-alxpanel-local.conf |
/etc/nftables/alxpanel.nft |
/etc/nftables/alxpanel-local.nft |
/usr/lib/sysctl.d/90-alxpanel.conf |
a file in /etc/sysctl.d/ |
/etc/fail2ban/filter.d/alxpanel-auth.conf |
/etc/fail2ban/filter.d/alxpanel-auth.local |
Data
| Path |
What it holds |
/srv/hosting |
The hosting accounts: their sites and files. See Customer storage. |
/var/lib/alxpanel/hosting.img |
The image file behind /srv/hosting, on a default install. |
/var/lib/alxpanel/certs |
Certificates of the sites. |
/var/lib/alxpanel/upgrade |
Update history and snapshots. See alxpanel-upgrade. |
/var/lib/pgsql/data |
The panel's own PostgreSQL database. |
/var/lib/mysql |
The customers' MariaDB databases. |
Logs
| Path or command |
What it holds |
/var/log/alxpanel/agent-audit.log |
One line per operation the agent ran, and per SSH session event. Kept 12 weeks. |
/var/log/alxpanel/panel-nginx-*.log |
The panel's own web server. Kept 8 weeks. |
/var/lib/alxpanel/panel/storage/logs/ |
The panel application's log, and auth.log with every panel sign-in attempt (what fail2ban reads). |
/var/log/alxpanel/sites/<account>/ |
Access, error and PHP error logs of each account's sites. Kept 4 weeks. Customers read them on their Logs page. |
journalctl -u alxpanel-agent |
The agent. |
journalctl -u alxpanel-panel-migrate |
Snapshots and database migrations during updates. |
journalctl -t alxpanel |
Warnings from the install and from the setup commands. |
journalctl --namespace=alxpanel-cron |
Output of customers' cron jobs. |
journalctl --namespace=alxpanel-proc |
Output of customers' background processes. |
Services
| Unit |
What it is |
alxpanel-agent |
The agent. |
alxpanel-nginx, alxpanel-panel-fpm |
The panel's web server and PHP, on port 8443. Separate from the nginx that serves the sites. |
alxpanel-panel-worker@1, alxpanel-panel-scheduler.timer |
The panel's background tasks and schedule. |
nginx, httpd, mariadb, proftpd |
The servers behind the customers' sites. |