Linux - Ubuntu - PHP - Common modules to install.txt
# Show currently loaded apache module
a2query -m | grep php
# Configure the used php version
update-alternatives --config php
# Modules for 7.0
apt install -y php7.0-curl php7.0-xml php7.0-zip php7.0-mbstring php7.0-gd php7.0-mysql
# Modules for 7.1
apt install -y php7.1-curl php7.1-xml php7.1-zip php7.1-mbstring php7.1-gd php7.1-mysql
# Modules for 7.2
apt install -y php7.2-curl php7.2-xml php7.2-zip php7.2-mbstring php7.2-gd php7.2-mysql
# Modules for 7.3
apt install -y php7.3-curl php7.3-xml php7.3-zip php7.3-mbstring php7.3-gd php7.3-mysql
# Modules for 7.4
apt install -y php7.4-curl php7.4-xml php7.4-zip php7.4-mbstring php7.4-gd php7.4-mysql
# Enable modules for all versions
phpenmod curl xml zip mbstring gd mysql