v0.8.10 — ротация логов сайтов, трассировки slow-лога на EL / site log rotation, slow-log backtraces on EL
Русский
- Логи сайтов в /var/www/<логин>/data/logs теперь ротируются: раньше их не ротировал никто, и они росли без ограничений. Файл /etc/logrotate.d/monopanel-sites — по блоку на аккаунт, logrotate работает правами самого аккаунта: раз в неделю или раньше, если лог перевалил за 100 МБ, восемь копий, сжатые начиная со второй. Панель переписывает файл при создании и удалении аккаунта и при старте, поэтому после обновления ротация сразу охватывает существующие аккаунты.
- nginx теперь действительно переоткрывает логи сайтов. Его рабочие процессы не могли зайти в data/logs и после USR1 — в том числе после ночной ротации самого nginx — продолжали писать в старые файлы, а в журнал nginx каждую ночь падали ошибки «Permission denied». Группа веб-серверов получила проход через data/logs.
- Логи сайта принадлежат аккаунту с правами 0660: так их может ротировать и сжимать logrotate на EL9.
- На EL в slow-логе php-fpm появились трассировки PHP: панель ставит небольшой модуль политики SELinux monopanel, который разрешает php-fpm подключаться к своим рабочим процессам через ptrace.
- mp update apply запоминает найденный релиз: после обновления статус больше не называет последней версию, которую видела прошлая проверка.
- Документация сверена с кодом: справочник CLI и API в docs/04 переписан по настоящим командам и эндпоинтам, в быстром старте README исправлены mp db create (флага --generate нет, пароль генерируется и так) и выпуск сертификата панели (mp ssl panel issue), скриншоты пересняты с панелью Valkey.
English
- Site logs in /var/www//data/logs now rotate: nothing rotated them before, and they grew without limit. /etc/logrotate.d/monopanel-sites has a stanza per account, and logrotate works with that account's rights: weekly, or sooner once a log passes 100 MB, eight copies compressed from the second one on. The panel rewrites the file when accounts come and go and at start, so an upgraded server covers its existing accounts at once.
- nginx now really reopens site logs. Its workers could not enter data/logs, so after USR1 — including nginx's own nightly rotation — they kept writing into the old files, and nginx logged "Permission denied" errors every night. The web server group may now pass through data/logs.
- A site's logs belong to its account with mode 0660, so logrotate on EL9 can rotate and compress them.
- On EL the php-fpm slow log now gets PHP backtraces: the panel installs a small SELinux policy module, monopanel, that lets php-fpm attach to its own workers with ptrace.
- mp update apply remembers the release it found: after an update the status no longer calls the version the previous check saw the latest.
- The documentation was checked against the code: the CLI and API reference in docs/04 is rewritten from the actual commands and endpoints, the README quick start fixes mp db create (there is no --generate; the password is generated anyway) and the panel certificate (mp ssl panel issue), and the screenshots are retaken with the Valkey panel.
Обновление
mp update
mp update apply
Панель скачает пакет для своей ОС, проверит подпись и перезапустится сама.