On Ubuntu Server, there’s a package called lamp-server
which sets up the entire stack for you.
Then I normally use these other packages / PHP modules:
apt install zip unzip iotop htop php-mbstring php7.3-mbstring php-gettext php7.3-xml php7.3-zip php7.3-imap php7.3-gd php7.3-curl php7.3-intl php7.3-mysql php-gd phpmyadmin
This will vary according to PHP version, but 7.3 is what I’d recommend for now.
And this older post will give you the general map of what is needed:
2 Likes