add this to wp-config.php:
define('FS_METHOD', 'direct');
apt install php-iconv php-exif php-memcached php-soap php-yaml php-imap php-markdown php-readline php-curl php-opcache php-zip php-dom php-mbstring php-imagick php-fileinfo php-json php-xml php-simplexml