you can try this
sudo phpenmod nameofthemod
I usually had to go down the list and attempt to enable each one of them. Sometimes I had to install them. You can do a google search on how to install php mods. there is probably a faster and more efficient way of doing it but I am not sure of that way.