### Run do-release-upgrade Source: https://kb.fastpanel.direct/ru/os_upgrade/ubuntu20 Starts the Ubuntu release upgrade. If the utility is not installed, install it with 'apt install update-manager-core'. ```bash do-release-upgrade --allow-third-party ``` -------------------------------- ### Install FastAPI and uvicorn Source: https://kb.fastpanel.direct/ru/sites/how-to-create-a-website-systemd Install FastAPI and uvicorn packages inside the activated virtual environment. ```bash pip install fastapi uvicorn ``` -------------------------------- ### Install and enable PHP 8.1 Source: https://kb.fastpanel.direct/ru/os_upgrade/ubuntu20 Installs PHP 8.1 with basic modules, PHP 8.1-FPM, and the Apache2 module, then enables the required PHP extensions. ```bash apt install -f php php-fpm libapache2-mod-php libapache2-mod-php8.1 php-common php8.1-cgi php8.1-cli php8.1-common php8.1-curl php8.1-gd php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-readline php8.1-xml php8.1-xmlrpc php-imagick php-memcached phpenmod calendar ctype curl dom exif fileinfo ftp gd gettext iconv mbstring mysqli mysqlnd pdo pdo_mysql phar posix readline shmop simplexml sockets sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlrpc xmlwriter xsl opcache imagick memcached ``` -------------------------------- ### Install Docusaurus with npx Source: https://kb.fastpanel.direct/ru/licenses/how-to-create-a-website-nodejs Run this command in the website directory to install Docusaurus. When prompted, select the 'classic' template. ```bash npx20.15.1 create-docusaurus -j ./docs ``` -------------------------------- ### Install PHP 7.3 and modules Source: https://kb.fastpanel.direct/ru/os_upgrade/debian9 Installs PHP 7.3 with basic modules, PHP 7.3-FPM, and the Apache2 module. ```bash dpkg -l | awk '/php7.0/ {print $2}' | sed -e 's/7.0/7.3/' | grep -v mcrypt | xargs apt install -y apt install -f php php-fpm libapache2-mod-php libapache2-mod-php7.3 php-common php7.3-cgi php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml php7.3-xmlrpc php-imagick php-memcached phpenmod calendar ctype curl dom exif fileinfo ftp gd gettext iconv json mbstring mysqli mysqlnd pdo pdo_mysql phar posix readline shmop simplexml sockets sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl opcache imagick memcached ``` -------------------------------- ### Install Dovecot LMTP Source: https://kb.fastpanel.direct/ru/os_upgrade/debian11 Installs the Dovecot LMTP daemon, required for receiving mail. ```bash apt install dovecot-lmtpd ``` -------------------------------- ### Install Express with npm20.15.1 Source: https://kb.fastpanel.direct/ru/licenses/how-to-create-a-website-nodejs Installs the Express framework using the npm version provided by FASTPANEL. Run this command in the website directory after creating app.js. ```bash npm20.15.1 install express ``` -------------------------------- ### Install PHP 7.4 with modules Source: https://kb.fastpanel.direct/ru/os_upgrade/debian10 Installs PHP 7.4 with basic modules, PHP-FPM, and Apache2 module. The first command converts installed PHP 7.3 packages to 7.4, the second installs PHP 7.4 and modules, and the third enables a list of PHP modules. ```bash dpkg -l | awk '/php7.3/ {print $2}' | sed -e 's/7.3/7.4/' | xargs apt install -y apt install -f php php-fpm libapache2-mod-php libapache2-mod-php7.4 php-common php7.4-cgi php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-xmlrpc php-imagick php-memcached phpenmod calendar ctype curl dom exif fileinfo ftp gd gettext iconv json mbstring mysqli mysqlnd pdo pdo_mysql phar posix readline shmop simplexml sockets sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl opcache imagick memcached ``` -------------------------------- ### Create a database with mogwai databases create Source: https://kb.fastpanel.direct/ru/cli/databases Creates a new database. The example creates database db1 on server 1, owner fastuser, site example.com, user dbuser, and password dbpassword1. Flags: -n/--name, -o/--owner, -s/--site, -c/--charset, -u/--username, -p/--password. ```bash mogwai databases create [flags] ``` ```bash mogwai databases create --server=1 -n db1 -o fastuser -s example.com -u dbuser -p dbpassword1 ``` -------------------------------- ### Install PHP 8.2 and enable modules Source: https://kb.fastpanel.direct/ru/os_upgrade/debian11 Installs PHP 8.2 with base modules, PHP7.3-FPM, and the Apache2 module, then enables the required PHP extensions. ```bash apt install -f php php-fpm libapache2-mod-php libapache2-mod-php8.2 php-common php8.2-cgi php8.2-cli php8.2-common php8.2-curl php8.2-gd php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-readline php8.2-xml php8.2-xmlrpc php-imagick php-memcached phpenmod calendar ctype curl dom exif fileinfo ftp gd gettext iconv mbstring mysqli mysqlnd pdo pdo_mysql phar posix readline shmop simplexml sockets sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlrpc xmlwriter xsl opcache imagick memcached ``` -------------------------------- ### Install FASTPANEL with MySQL 8.0 Source: https://kb.fastpanel.direct/ru/databases/mysql-version Use this command to install FASTPANEL with MySQL 8.0. Replace 'mysql8.0' with another version or fork if needed. ```bash bash install_fastpanel.sh -m mysql8.0 ``` -------------------------------- ### Install update-manager-core Source: https://kb.fastpanel.direct/ru/os_upgrade/ubuntu20 Installs the update-manager-core package, which provides the do-release-upgrade utility. ```bash apt install update-manager-core ``` -------------------------------- ### Show available commands with mogwai --help Source: https://kb.fastpanel.direct/ru/cli/intro Shows the list of available CLI commands. Run as root. ```bash mogwai --help ``` -------------------------------- ### Example SPF record Source: https://kb.fastpanel.direct/ru/email/checklist-for-mail-verification Example of a complete SPF record with a sample IP address. ```text example.com TXT v=spf1 ip4:1.2.3.4 a mx ~all ``` -------------------------------- ### Запуск обновления ОС (do-release-upgrade) Source: https://kb.fastpanel.direct/ru/os_upgrade/ubuntu18 Запускает обновление до Ubuntu 20.04 с разрешением сторонних репозиториев. Если утилита не установлена, сначала установите update-manager-core. ```bash do-release-upgrade --allow-third-party ``` -------------------------------- ### Проверка наличия пакета fastpanel2 (Debian/Ubuntu) Source: https://kb.fastpanel.direct/ru/troubleshoot Команда для проверки, установлен ли пакет fastpanel2 в системах Debian/Ubuntu. Используйте её при ошибке 404 в браузере при открытии панели управления. ```bash dpkg -l | grep fastpanel2 ``` -------------------------------- ### Проверка MX-записи домена Source: https://kb.fastpanel.direct/ru/email/checklist-for-mail-verification Команда host для проверки MX-записи домена example.com. ```bash host -t MX example.com ``` -------------------------------- ### Modify Docusaurus start script Source: https://kb.fastpanel.direct/ru/licenses/how-to-create-a-website-nodejs Replace the 'start' script in docs/package.json to use the $SERVICE_PORT environment variable provided by FASTPANEL. ```json "start": "docusaurus start", # replace with "start": "docusaurus start --port $SERVICE_PORT", ``` -------------------------------- ### Install Python packages on Debian/Ubuntu Source: https://kb.fastpanel.direct/ru/sites/how-to-create-a-website-systemd Install Python 3 pip and venv packages on Debian/Ubuntu systems before setting up a FastAPI service with Systemd. ```bash apt update && apt install python3-pip python3-venv -y ``` -------------------------------- ### Initialize Next.js project with yarn Source: https://kb.fastpanel.direct/ru/licenses/how-to-create-a-website-nodejs Run these commands in the website directory to initialize a Next.js project and add required dependencies. ```bash yarn20.19.4 init -y yarn20.19.4 add next react react-dom ``` -------------------------------- ### Example iptables rule blocking port 25 Source: https://kb.fastpanel.direct/ru/email/checklist-for-mail-verification Example output of iptables-save showing a rule that drops incoming connections on port 25. ```bash iptables-save | grep 25 -A INPUT -p tcp -m tcp --dport 25 -j DROP ``` -------------------------------- ### Настройка Exim (Debian/Ubuntu) Source: https://kb.fastpanel.direct/ru/email/update-mail Команда для настройки Exim через FASTPANEL на системах Debian/Ubuntu. ```bash /usr/local/fastpanel2/fastpanel services configure -f -p exim ``` -------------------------------- ### List databases with mogwai databases list Source: https://kb.fastpanel.direct/ru/cli/databases Lists all databases. The output shows database IDs, names, server names, charsets, owners, sizes, and creation times. ```bash mogwai databases list ``` ```text ID NAME SERVER_NAME LOCAL HOST CHARSET OWNER SIZE CREATE_AT 1 db1 mysql(localhost) localhost true utf8mb4 user 0 2024-05-28 10:03:03.227413266 +0000 UTC 2 database43s mysql(localhost) localhost true utf8mb4 user82 0 2024-05-28 10:07:15.001640584 +0000 UTC ``` -------------------------------- ### Проверка направления домена (nslookup example.com) Source: https://kb.fastpanel.direct/ru/ssl_certificates/lets-encrypt-troubleshooting Команда для проверки, на какой IP-адрес направлен домен. Выполняется с указанием DNS-сервера 8.8.8.8. Ожидаемый результат — A-запись с IP-адресом сервера. ```bash nslookup example.com 8.8.8.8 ``` -------------------------------- ### Install Python packages on Rocky Linux/AlmaLinux Source: https://kb.fastpanel.direct/ru/sites/how-to-create-a-website-systemd Install Python 3 pip and virtualenv packages on Rocky Linux/AlmaLinux systems before setting up a FastAPI service with Systemd. ```bash yum install python3-pip python3-virtualenv -y ``` -------------------------------- ### Проверка доступности сайта (curl -IL example.com) Source: https://kb.fastpanel.direct/ru/ssl_certificates/lets-encrypt-troubleshooting Команда для проверки доступности сайта и получения HTTP-заголовков. Выполняется на сервере, где расположен сайт. Ожидаемый результат — HTTP-ответ с кодом 200 OK. ```bash curl -IL example.com ``` -------------------------------- ### Check available MySQL versions for FASTPANEL installation Source: https://kb.fastpanel.direct/ru/databases/mysql-version Run this command before installing FASTPANEL to see which MySQL versions are supported by your operating system. The output lists available versions in the 'Available versions' line. ```bash wget https://repo.fastpanel.direct/install_fastpanel.sh && bash install_fastpanel.sh --help | grep 'Available versions' ``` -------------------------------- ### Установка утилиты host на Debian/Ubuntu Source: https://kb.fastpanel.direct/ru/email/checklist-for-mail-verification Команда для установки утилиты host в системах на базе Debian или Ubuntu. ```bash apt-get install bind9-host ``` -------------------------------- ### Deactivate virtual environment Source: https://kb.fastpanel.direct/ru/sites/how-to-create-a-website-systemd Deactivate the virtual environment after installing the required packages. ```bash deactivate ``` -------------------------------- ### Повторная установка FASTPANEL® на Debian/Ubuntu Source: https://kb.fastpanel.direct/ru/quick_start/how-to-uninstall-fastpanel Команды для повторной установки пакетов FASTPANEL® на Debian/Ubuntu: обновление списка пакетов, установка пакетов и запуск обновления. ```bash apt-get update apt-get install fastpanel2 fastpanel2-nginx /usr/local/fastpanel2/updater ``` -------------------------------- ### Переустановка пакета fastpanel2 (Debian/Ubuntu) Source: https://kb.fastpanel.direct/ru/troubleshoot Команда для переустановки пакета fastpanel2 в системах Debian/Ubuntu. Обратите внимание, что установка fastpanel2 приведёт к удалению ранее установленного программного обеспечения, которое вызвало проблему. ```bash apt install fastpanel2 ``` -------------------------------- ### Fix dovecot Source: https://kb.fastpanel.direct/ru/os_upgrade/debian9 Fixes dovecot by moving certificate files and installing dovecot-lmtpd. ```bash mv /etc/dovecot/private/dovecot{.pem,.key} mv /etc/dovecot/dovecot.pem /etc/dovecot/private/dovecot.pem apt install dovecot-lmtpd ``` -------------------------------- ### SPF record without IPv6 Source: https://kb.fastpanel.direct/ru/email/checklist-for-mail-verification Example of an SPF record when IPv6 is not used. ```text example.com descriptive text "v=spf1 ip4:ipv4_of_your_server a mx ~all" ``` -------------------------------- ### SPF record with IPv6 Source: https://kb.fastpanel.direct/ru/email/checklist-for-mail-verification Example of an SPF record that includes both IPv4 and IPv6 addresses. ```text example.com descriptive text "v=spf1 ip4:ipv4_of_your_server ip6:ipv6_of_your_server a mx ~all" ```