Installing PHP requires GD (FreeType, JPEG, PNG) support
1. Installation FreeType
[Root@localhost softs]# tar XF freetype-2.5.0.tar.bz2-c/usr/src/
[Root@localhost softs]# cd/usr/src/freetype-2.5.0
[Root@localhost freetype-2.5.0]#./configure--prefix=/usr/local/freetype--enable-shared
[Root@localhost freetype-2.5.0]# make && make install
2. Install PNG
[Root@localhost softs]# tar XF libpng-1.6.6.tar.gz-c/usr/src/
[Root@localhost softs]# cd/usr/src/libpng-1.6.6/
[Root@localhost libpng-1.6.6]#./configure--prefix=/usr/local/png--enable-shared
[Root@localhost libpng-1.6.6]# make && make install
3. Install JPEG
[Root@localhost softs]# tar XF jpeg-6b.tar.gz-c/usr/src/
[Root@localhost softs]# cd/usr/src/jpeg-9/
[Root@localhost jpeg-9]#./configure--prefix=/usr/local/jpeg--enable-shared
[Root@localhost jpeg-9]# make && make install
4. Installation Zlib
[Root@localhost softs]# tar XF zlib-1.2.2.2.tar.gz-c/usr/src/
[Root@localhost softs]# cd/usr/src/zlib-1.2.2.2
[Root@localhost zlib-1.2.2.2]#./configure--prefix=/usr/local/zlib
[Root@localhost zlib-1.2.2.2]# make && make install
5. Installation LIBGD
[Root@localhost softs]# tar XF libgd-2.1.0.tar.xz-c/usr/src/