您的位置:首页 > 运维架构 > Apache

重新整理mysql+apache+gd+php(zlib,jpegsrc...)

2008-12-03 18:30 537 查看
重新整理mysql+apache+gd+php(zlib,jpegsrc...)
 
 
 
AS 4+mysql 5.0.27+httpd-2.0.58 +gd-2.0.33 zlib-1.2.3 +libpng-1.2.14+freetype-2.2.1+jpegsrc-1.v6b+php-5.2.0
软件准备
mysql 5.0.27
httpd-2.0.58
gd-2.0.33
libpng-1.2.14
freetype-2.2.1
jpegsrc-1.v6b
php-5.2.0
zlib-1.2.3
mysql 5.0.27 
http://ftp.plusline.de/mysql/Downloads/MySQL-5.0/mysql-5.0.27.tar.gz
php-5.2.0
http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
httpd-2.0.58
http://httpd.apache.org/download.cgi
http://httpd.apache.org/download.cgi
GD Library gd-2.0.33
http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
zlib-1.2.3
http://www.zlib.net/zlib-1.2.3.tar.gz
http://www.zlib.net/zlib-1.2.3.tar.gz
libpng
http://prdownloads.sourceforge.net/libpng/libpng-1.2.8-config.tar.gz?download
Jpeg v6b
http://www.ijg.org/files/jpegsrc.v6b.tar.gz
FreeType2
http://jaist.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.10.tar.gz
http://www.freetype.org
http://www.freetype.org
ftp://ftp.uu.net/graphics/jpeg/
ftp://ftp.uu.net/graphics/jpeg/
http://www.gzip.org/zlib/
http://www.gzip.org/zlib/
http://www.php.net/downloads.php
http://www.php.net/downloads.php
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
http://www.libpng.org/pub/png/
http://www.libpng.org/pub/png/
http://www.boutell.com/gd/
http://www.boutell.com/gd/
ftp://ftp.rhyme.com.au/pub/gd/
ftp://ftp.rhyme.com.au/pub/gd/
http://nchc.dl.sourceforge.net/sourceforge
http://nchc.dl.sourceforge.net/sourceforge
Zend
http://downloads.zend.org
http://downloads.zend.org
Proftpd
http://www.proftpd.org/
http://www.proftpd.org/
libxml
http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.19.tar.gz
XPM
ftp://metalab.unc.edu/pub/Linux/libs/X/!INDEX.html
===================================================
先解压所有包,然后
1、装httpd2.*
cd /soft/apache_1.3.37
patch -p0 < /soft/frontpage/version4.0/apache-fp/fp-patch-apache_1.3.26
cp /soft/frontpage/version4.0/apache-fp/fp-patch-apache_1.3.26 src/modules/extra/
cp mod_frontpage.c src/modules/extra/
 ./configure --enable-shared=max --prefix=/usr/local/httpd --enable-module=most --enable-so --server-uid=99 --server-gid=99 --enable-suexec --suexec-caller=nobody --enable-shared=max --suexec-docroot=/usr/local/httpd/htdocs  --suexec-uidmin=99 --suexec-gidmin=99
make clean
make && make install
vi /usr/local/httpd/conf/httpd.conf            #添加下面两行
DirectoryIndex index.php                     
AddType application/x-httpd-php .php
user nobody                                        #用户及组均改为nobody
group nobody
启动测试 /usr/local/httpd/bin/apachectl start
netstat -lntp |grep 80       #查看80端口启动代表成功
2、装zlib
cd zlib-1.2.3
./configure --prefix=/usr/local
make && make install
3、装libpng
cd ../libpng-1.2.8-config
./configure --prefix=/usr/local
make && make install
4、装freetype
cd ../freetype-2.1.10
./configure --prefix=/usr/local
make && make install
5、装jpegsrc
cd ../jpeg-6b/
ll /usr/local/man/man1   #查看路径是否存在,没有就建立相应目录。
./configure --prefix=/usr/local --enable-shared --enable-static
make && make install
6、装libxml2
cd libxml2-2.6.19
./configure --prefix=/usr/local --with-http --with-modules --with-zlib=/usr/local
make && make install
7、安装GD库
cd ../gd
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local --with-png=/usr/local --with-zlib=/usr/local --with-freetype=/usr/local
make && make install
cp gd.h /usr/local/lib 
8、安装 php
cd ../php-5.2.2
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 --with-apxs=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local --with-freetype=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local/gd  --with-libxml-dir=/usr/local
make
make test  #如有FALED字样,可以不用理会
make install
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/httpd/conf/httpd.conf  #确定以下两行存在
LoadModule php5_module modules/libphp5.so
AddModule mod_php5.c
测试
vi /usr/local/httpd/htdocs/index.php
<?
phpinfo();
?>;

CentOS,AS4 上测试均没有问题
 
 
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息