In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the method of configuring PHP to support GD under Linux". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the method of configuring PHP to support GD under Linux".
GD installation
The first thing you need to do is to install GD into the system, and before installing GD, you need to install jpeg-6b, libpng, zlib, freetype. The following is the address of the lower network:
GD 2.0.33
Jpeg-6b
Libpng 1.2.8
Zlib 1.2.3
Freetype-2.1.10.tar.gz
Create an installation package directory
Mkdir / usr/local/modules
Enter the following instructions for installation when the download is complete.
Install zlib
# do not use-prefix to indicate that security will affect GD
Tar zxvf zlib-1.2.3.tar.gz
Cd zlib-1.2.3
. / configure
Make
Make install
Install freetype
Tar zxvf freetype-2.1.10.tar.gz
Cd freetype-2.1.10
. / configure-prefix=/usr/local/modules/freetype
Make
Make install
Install libpng
# do not use-prefix to indicate that security will affect GD
Tar zxvf libpng-1.2.8-config.tar.gz
Cd libpng-1.2.8-config
. / configure
Make
Make install
Install jpeg-6b
Tar zxvf jpegsrc.v6b.tar.gz
Cd jpeg-6b
. / configure-prefix=/usr/local/modules/jpeg6-enable-shared-enable-static
Make
Make install
Install GD
Tar zxvf gd-2.0.33.tar.gz
Cd gd-2.0.33
. / configure-prefix=/usr/local/modules/gd-with-jpeg=/usr/local/modules/jpeg6-with-png-with-zlib-with-freetype=/usr/local/modules/freetype
Make
Make install
The next step is to configure PHP.
PHP configuration
Now you need to re-edit PHP, and choose to support GD. If the original code of PHP has been deleted in the system, you can go to php.net and enter the following command:
Please add the following after configure
-with-gd=/usr/local/modules/gd-with-jpeg-dir=/usr/local/modules/jpeg6-with-zlib-with-png-with-freetype-dir=/usr/local/modules/freetype
Please join by yourself.
Tar zxvf php-4.4.1.tar.gz
Cd php-4.4.1
. / configure as instructed above
Make
Make install
Thank you for your reading, the above is the content of "the method of configuring PHP to support GD under Linux". After the study of this article, I believe you have a deeper understanding of the method of configuring PHP to support GD under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.