linux下php gd 库的安装步骤
一,先安装支持包(注意安装顺序)
1、安装zlib
cd zlib-1.2.3
./configure
make
make install
2、安装freetype
cd freetype-2.2.1
./configure
make
make install
3、安装libpng
cd libpng-1.2.12
cp scripts/makefile.std makefile
make test
make install
4、安装jpeg
建立文件包:/usr/local/man/man1
./configure --enable-shared --enable-static
make
make install
注意,如果安装PHP5,必需安装libxml2
5、安装GD库
./configure --with-jpeg --with-png --with-zlib --with-freetype
make
make install
二,更改apache的配置文件:
让apache能解释php程序。
1,查找AddType application/x-tar .tgz 行,在下面添加:
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
2,找到下面一行在后面添加:index.php,表示网站的默认页也允许为index.php
您可能感兴趣的文章:
php gd库的基础知识
linux下为php添加GD库的安装步骤
linux下php gd 库的安装步骤
windows下开启PHP GD库的方法
php绘图不显示图片怎么办
php5安装GD库步骤分享
Linux下rpm安装php gd库支持(步骤详解)
linux下yum为php安装gd库
linux下安装 php GD支持库的方法
Linux下开启PHP GD库支持