在装有DirectAdmin的centOS3.6下安装成功....
1.可以到freetype官方去下载:
http://www.freetype.org/
code:--------------------------------------------------------------------------------cd /usr/local/directadmin/customapache/
wget
http://download.savannah.gnu.org/re...e-2.1.10.tar.gz
tar zxvf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure
make
make install--------------------------------------------------------------------------------
2.修改/usr/local/directadmin/customapache/build文件,
搜索:
code:--------------------------------------------------------------------------------./configure --with-png=/usr/local --with-jpeg=/usr/local --without-freetype--------------------------------------------------------------------------------
修改成:
code:--------------------------------------------------------------------------------./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype=/usr/local--------------------------------------------------------------------------------
3.修改/usr/local/directadmin/customapache/configure.php文件:
修改成下面这样的:
code:-------------------------------------------------------------------------------- --with-gd \
--with-gd-dir=/usr/local \
--with-freetype \
--with-freetype-dir=/usr/local \--------------------------------------------------------------------------------
4.执行:
code:--------------------------------------------------------------------------------./build clean
./build gd
./build php--------------------------------------------------------------------------------
5.最后重起Apache
code:--------------------------------------------------------------------------------service httpd restart