#change php version with your version apt install php7.4-bcmath #nginx systemctl restart nginx #For Apache systemctl restart apache2