2.3.6 gd 的安装
# tar –zxvf gd-2.0.33.tar.gz
# cd gd-2.0.33
# ./configure
# vi Makefile
(编辑 Makefile文件
改 CFLAGS=-O 为 CFLAGS=-O -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF
改 LIBS=-lm -lgd -lpng -lz 为 LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11
改 INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11
为 INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include/freetype)
# make
# make install
2.4 安装php
# tar zxvf php-5.0.4.tar.gz
# cd php-5.0.4
#./configure --prefix=/web/php
--with-apxs2=/web/apache/bin/apxs
--with-config-file-path=/usr/local/lib
--enable-track-vars
--with-xml
--with-mysql
--with-libxml-dir=/usr/local/lib
--with-gd=/usr/local
--with-t1lib=/usr/local
--with-tiff-dir=/usr/local
--with-jpeg-dir=/usr/include
--with-ttf=/usr/include/freetype
--with-zlib-dir=/usr/include
--with-png-dir=/usr/include
--with-mbstring --enable-mbstring=all
# make
# make install
# cp php.ini-dist /usr/local/lib/php.ini
修改php.ini中的下列行
extension_dir = "./"
为
extension_dir = "/web/php/include/php/ext"
2.5 GD库的安装检查
安装完毕后用<? phpinfo(); ?>查看结果如下:
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
T1Lib Support enabled
GIF Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
2.6 安装Mantis
# mv mantis-1.1.1 /var/www/mantis
2.7 建立数据库bugtracker及用户mantis
$mysqladmin -u root -p create bugtracker
//输入MySQL的root密码即可完成创建数据库bugtracker的操作
$mysql -u root -p
mysql>grant all privileges on bugtracker.* to 'mantis'@'localhost' identified by '你指定的mantis用户密码';
mysql>FLUSH PRIVILEGES;
mysql>q
2.8 安装Zend Optimizer
#tar -zxvf ZendOptimizer-linuxi386.tar.gz
#cd ZendOptimizer-2.6.0-linux-glibc21-i386
#./install.sh
//重启Apache
#/web/apache/bin/apachectl –k restart