How does php enable gd2 extension php after How to enable the gd2 extension standard to install apache and php? if you need the support of the gd Library, just execute the following command: apt-getinstallphp5-gd to find the php configuration file php. ini, search for extensionphp_gd2.dll, and remove the semicolon. if this is not directly added, it is suitable for windows and how to enable gd2 extension when gd php is supported during compilation.
How to enable gd2 extension in php
After standard installation of apache and php, if you need the support of the gd library, you only need to execute the following command to OK:
Apt-get install php5-gd
Find the php configuration file php. ini, search for extension = php_gd2.dll, and remove the semicolon;
If this is not directly added, it is applicable to the windows system and php that supports gd during compilation. just save it and restart apache.
For example, deb of Ubuntu. Run the command to install php installed by redhat rpm.
Ubuntu: sudo apt-get install php5-gd
Redhat: yum install php-gd
FreeBSD can use the package of systeminstall to install gd2.
If it is compiled and installed and does not support gd, you need to install gd first, and then re-compile php