LAMP: extension module installed php

In Example GD: gd mounting image processing library
viewing module php been uninstalled:
[the root @ Server /] # php -m
. 1, corresponding to the installation procedure dependent.
[the root @ Server /] -Y # yum the install the libpng libjpeg libjpeg-devel the libpng-devel FreeType FreeType the libxml2-devel-devel Gd
2, into the source package found Gd
[the root @ Server /] # CD / usr / the src / PHP -5.3.28 / EXT / Gd /
. 3, performing the phpize,
[the root Gd @ Server] # the phpize
Here Insert Picture Description
. 4, configure, compile, mounting
[root @ server gd] # ./configure --with-php-config = / usr / local / PHP / bin / PHP-config-PNG---with the dir-FreeType --with the dir---with the dir-JPEG---with-Gd
[the root Gd @ Server] && # the make the make the install
. 5, view generation image file
[the root Gd @ Server] CD # / usr / local / PHP / lib / PHP / Extensions / non-NO-Debug-ZTS-20,090,626 /
Here Insert Picture Description
. 6, modify the php.ini
[the root @ Server /] # Vim / usr /local/php/php.ini
Extension = gd.so
7, restart the service
[root @ Server /] # Service restart PHP-FPM
8, to see if the installation was successful
Here Insert Picture Description

Published 52 original articles · won praise 4 · views 10000 +

Guess you like

Origin blog.csdn.net/HCY_2315/article/details/104344220