Ubuntu’s software package download and installation tool: apt-get is very easy to use, and Ubuntu’s software source provides most commonly used software packages. Therefore, it is very simple to install the PHP extension libraries mcrypt, curl and gd libraries under Ubuntu. Yes, enter the following command to complete it automatically (the following installation assumes that PHP5 is installed on the system):
apt-get install php5-mcrypt; apt-get install php5-curl; apt-get install php5-gd;
After the installation is completed,
restart the apach service: service apache2 restart;
Access your server,
display php Information:
You can see that the above three libraries have been installed.