ZhongZiChang’s Dao

October 17, 2006

Apache2.0 PHP GD JPEG PNG FreeType zlib

Filed under: 配置 — 钟 子昌 @ 5:20 pm

+——————————————————————-+
+ Apache2.0 + PHP4 + GD + JPEG + PNG + FreeType + zlib +
+——————————————————————-+
+ $date 20060108 +
+ $author zczhong +
+——————————————————————-+
1. zlib
tar zxvf zlib-1.2.2.tar.gz
cd zlib-1.2.2
./configure
make
make install
ln -s zlib-1.2.2 zlib //for libpng

2. libpng
tar zxvf libpng-1.2.7.tar.gz
cd libpng-1.2.7
mv scripts/makefile.linux makefile
make
make install

3. freetype
tar zxvf freetype-2.1.9.tar.gz
cd freetype-2.1.9
./configure
make
make install

4. jpeg
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure –enable-shared
make
make test
make install

5. gd
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure –with-png –with-freetype –with-jpeg
make install //sudo

6. apache
source release :
./configure \
–prefix=/usr/local/apache2 \
–enable-so \
–enable-mods-shared=most \
–enable-ssl=shared
binary release :
./configure \
–prefix=/usr/local/apache2 \
–enable-mods-shared=most \
–enable-ssl=shared
make
make install

7. php5(4不支持mysqli)
./configure \
–with-zlib \
–with-gd \
–with-jpeg-dir \
–with-ttf \
–with-freetype-dir \
–with-iconv \
–with-iconv-dir \
–with-apxs2=/usr/local/apache2/bin/apxs \
–with-xmlrpc \
–enable-bcmath \
–enable-gd-native-ttf \
–enable-memory-limit \
–enable-zend-multibyte \
–enable-mbstring \
–enable-dba \
–enable-exif \
–disable-ipv6 \
–disable-path-info-check \
–disable-debug

options:
–prefix=/usr/local/php \
–with-mysqli=/usr/local/mysql/bin/mysql_config \
–with-mysql=/usr/local/mysql \

make
make install
vi apache2/conf/httpd.conf
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress