AS 4_mysql_httpd_gd_zlib_libpng_freetype_jpegsrc_php
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
install_mysql
1 tar -zxf mysql-5.0.27.tar.gz
2 cd mysql-5.0.27
3 ./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql --with-extra-charsets=all --with-unix-socket-path=/var/lib/mysql/mysql.sock
4 make && make install
5 ./use/local/mysql/bin/mysql_install_db
6 groupadd mysql
7 useradd -g mysql mysql
8 chmod -R 777 /var/lib/mysql/
9 chmod -R 777 /usr/local/mysql/
10 cp support-files/mysql.server /etc/rc.d/init.d/mysqld
11 chmod 777 /etc/rc.d/init.d/mysqld
12 /etc/rc.d/init.d/mysqld start
install_apache
1 tar -jxf httpd-2.0.58.tar.bz2
2 cd httpd-2.0.58
3 ./configure --prefix=/usr/local/apache --enable-so --enable-modules=all --enable-mods-shared=max
4 make && make install
5 vi /usr/local/apache/conf/httpd.conf
Inset
"DirectoryIndex index.php"
"AddType application/x-httpd-php .php"
install_gd
6 tar -zxf gd-2.0.33.tar.gz
7 tar -zxf zlib-1.2.3.tar.gz
8 cd zlib-1.2.3
9 ./configure --prefix=/usr/local/zlib
10 make && make install
11 cd ..
12 tar -zxf libpng-1.2.14.tar.gz
13 cd libpng-1.2.14
14 ./configure --prefix=/usr/local/libpng
15 make && make install
16 cd ..
17 tar -jxf freetype-2.2.1.tar.tar
18 cd freetype-2.2.1
20 ./configure --prefix=/usr/local/freetype
21 make && make install
22 cd ..
23 tar -zxf jpegsrc-1.v6b.tar.gz
24 cd jpeg-6b/
25 ./configure --prefix=/usr/local/jpeg6
26 make && make install
27 cd /usr/local
28 tar -zxf jpegsrc-1.v6b.tar.gz
29 cd jpeg-6b/
20 mkdir /usr/local/jpeg
31 mkdir /usr/local/jpeg/include
32 mkdir /usr/local/jpeg/bin
33 mkdir /usr/local/jpeg/lib
34 mkdir /usr/local/jpeg/man
35 mkdir /usr/local/jpeg/man/man1
36 ./configure --prefix=/usr/local/jpeg --enable-shared --enable-static
37 make && make install
38 cd ..
39 cd gd-2.0.33
40 ./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg --with-png=/usr/local/libpng --with-zlib=/usr/local/zlib --with-freetype=/usr/local/freetype
42 make && make install
install_php
1 tar -jxf php-5.2.0.tar.bz2
2 cd php-5.2.0
3 ./configure --prefix=/usr/local/php --with-apaxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-jpeg=/usr/local/jpeg --with-zlib=/usr/local/zlib --with-freetype=/usr/local/freetype --with-png=/usr/local/libpng --with-gd=/usr/local/gd
4 make && make install
5 cp php.ini-dist /usr/local/php/lib/php.ini
6 vi /usr/local/apache/htdocs/index.php
CentOS,AS4 上测试均没有问题
[ 本帖最后由 atyu30 于 2007-1-15 11:53 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
MySQL http://ftp.plusline.de/mysql/Dow ... mysql-5.0.27.tar.gz
PHP http://cn2.php.net/get/php-5.2.0.tar.bz2/from/cn.php.net/mirror
Apache http://httpd.apache.org/download.cgi
GD Library http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
Zlib http://www.zlib.net/zlib-1.2.3.tar.gz
libpng http://prdownloads.sourceforge.n ... fig.tar.gz?download
Jpeg v6b http://www.ijg.org/files/jpegsrc.v6b.tar.gz
FreeType2 http://jaist.dl.sourceforge.net/ ... etype-2.1.10.tar.gz
http://www.freetype.org
ftp://ftp.uu.net/graphics/jpeg/
http://www.gzip.org/zlib/
http://www.php.net/downloads.php
ftp://ftp.uu.net/graphics/png/src/zlib-1.1.3.tar.gz
http://www.libpng.org/pub/png/
http://www.boutell.com/gd/
ftp://ftp.rhyme.com.au/pub/gd/
http://nchc.dl.sourceforge.net/sourceforge
Zend http://downloads.zend.org
Proftpd http://www.proftpd.org/
libxml http://ftp.gnome.org/pub/GNOME/s ... bxml2-2.6.19.tar.gz
有时间上FREE BSD看看
[ 本帖最后由 atyu30 于 2007-1-9 10:16 编辑 ]
install zend
ZendOptimizer-3.2.0-linux-glibc21-i386 不兼容PHP5.2.0
1. tar -zxf ZendOptimizer-
2. cd Zed
3. ./install
[ 本帖最后由 atyu30 于 2007-1-18 15:11 编辑 ]