aaPanel_Kern
Hi, I also had trouble installing the gmp extension in aapanel. I registered to say that the method with SSH login and entering these commands worked for me. I was then able to install gmp through the control panel. Also don't forget to restart PHP otherwise the error on the site about disabled gmp may not go away immediately
ubuntu/debian:
apt-get install libgmp-dev