apache1.3+mysql5.0+php5.2相关的下载地址也都贴出来了.编译完了以后支持jpg,gd.还不熟悉脚本的编写,把所以软件都下载到/usr/local/src下,然后顺序执行就可以了.也不知道能不能算脚本,一点判断的语句都没写,zend还要手工装,先这吧,已经有了相关的能力再补上
 
#!/bin/bash
#wget [url]http://mysql.new21.com/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz[/url]
#wget [url]http://apache.mirror.phpchina.com/httpd/apache_1.3.37.tar.gz[/url]
#wget [url]http://cn.php.net/distributions/php-5.2.3.tar.gz[/url]
#wget [url]http://downloads.zend.com/optimizer/3.3.0/ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz[/url]
#wget [url]http://prdownloads.sourceforge.net/png-mng/libpng-1.2.5.tar.gz[/url]
#wget [url]http://freshmeat.net/redir/libjpeg/5665/url_tgz/jpegsrc.v6b.tar.gz[/url]
#wget [url]http://umn.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.gz[/url]
#wget [url]http://www.zlib.net/zlib-1.2.3.tar.gz[/url]
#wget [url]http://www.boutell.com/gd/http/gd-2.0.28.tar.gz[/url]
tar zxvf apache_1.3.37.tar.gz
tar zxvf mysql-5.0.45.tar.gz
tar zxvf php-5.2.3.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
tar zxvf libpng-1.2.5.tar.gz
tar zxvf zlib-1.2.3.tar.gz
tar zxvf freetype-2.1.9.tar.gz
tar zxvf gd-2.0.28.tar.gz
tar zxvf ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz
cd mysql-5.0.45
./configure --prefix=/usr/local/mysql --sysconfdir=/etc --localstatedir=/var/lib/mysql --with-mysqld-user=mysql&&make&&make install
cd /usr/local/src/apache_1.3.37
./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite --enable-shared=max &&make &&make install
cd /usr/local/src/libpng-1.2.5 
cp scripts/makefile.linux ./makefile
make &&make install
cd /usr/local/src/jpeg-6b
mkdir -p /usr/local/man/man1
./configure --enable-shared --enable-static --prefix=/usr/local &&make &&make install
cd /usr/local/src/freetype-2.1.9
./configure --enable-shared --enable-static --prefix=/usr/local &&make &&make install
cd /usr/local/src/zlib-1.2.3
./configure &&make &&make install
cd /usr/local/src/gd-2.0.28/
./configure --prefix=/usr/local --with-jpeg=/usr/local --with-png=/usr/local --with-zlib --with-freetype=/usr/local &&make &&make install
cd /usr/local/src/php-5.2.3
./configure --prefix=/usr/local/php --with-apxs=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local --enable-trace-vars --with-zlib --with-config-file-path=/etc --enable-gd-native-ttf --with-bz2 --with-iconv --with-zlib --disable-ipv6 --enable-discard-path --bindir=/usr/bin --sbindir=/usr/sbin --disable-debug --disable-rpath --with-curl --with-exec-dir=/usr/bin --with-gettext --with-openssl --with-xml --with-xmlrpc=shared --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-calendar --with-mysql=/usr/local/mysql --with-freetype-dir=/usr/local --enable-mbstring=all &&make &&make install