亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 823 | 回復(fù): 0
打印 上一主題 下一主題

apache2.2.3+php5+gd [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-04-21 15:31 |只看該作者 |倒序?yàn)g覽

GD+PHP  
下載
gd-2.0.33.tar.gz
http://www.boutell.com/gd/
jpegsrc.v6b.tar.gz
http://www.ijg.org/
libpng-1.2.7.tar.tar
http://sourceforge.net/projects/libpng/
zlib-1.2.2.tar.gz
http://sourceforge.net/projects/zlib/
freetype-2.1.9.tar.gz
http://sourceforge.net/projects/freetype/
php-4.3.9.tar.gz 
http://www.php.net
二、說明
最新的GD庫(kù)包括了對(duì)GIF的支持,所以不要打GIF補(bǔ)丁
http://sourceforge.net/ 好多源代碼包可以在上面找到
安裝步驟:
先安裝zlib,freetype,libpng,jpeg,再裝GD,再裝PHP
三、安裝
1.裝zlib
tar zxvf zlib-1.2.2.tar.gz
cd zlib-1.2.2
./configure
make
make install
2.安裝libpng
tar zxvf libpng-1.2.7.tar.tar
cd libpng-1.2.7
cd scripts/
mv makefile.linux ../makefile
cd ..
make
make install
注意,這里的makefile不是用./configure生成,而是直接從scripts/里拷一個(gè)
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
注意,這里configure一定要帶--enable-shared參數(shù),不然,不會(huì)生成共享庫(kù)
5.安裝GD
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure --with-png --with-freetype --with-jpeg
make install
6.安裝PHP
tar zxvf php-5.2.0.tar.gz
cd php-5.2.0
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib --with-png --with-jpeg-dir=/usr/local/lib --with-freetype-dir=/usr/local/lib --enable-sockets --with-curl --enable-gd-imgstrttf --enable-gb-native-ttf --with-fft --with-sqlite --with-iconv --with-mbstring
make
make install
cp php-dist.ini /usr/local/php5.2.0/lib/php.ini
7.配置Apache支持PHP(看是否為work模式)
修改httpd-2.2.3/server/mpm/prefork/prefork.c中關(guān)于define DEFAULT_SERVER_LIMIT 256為1024

tar xzvf http-2.2.3.tar.gz
cd http-2.2.3
./configure --prefix=/usr/local/apache2 --enable-rewrite --enable-cgi --enable-http --enable-headers –enable-so
Make
make install
8.測(cè)試
php -r ' phpinfo(); '| more


本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/29960/showart_571347.html
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP