wget [url]ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2.tar.gz[/url]
tar zxvf proftpd-1.3.2.tar.gz
cd proftpd-1.3.2
./configure –prefix=/usr/local/proftpd
make
(啟動方法)
/usr/local/proftpd/sbin/proftpd
################
# 安裝 MYSQL
################
wget wget [url]http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.31.tar.gz/from/http://mysql.ntu.edu.tw/[/url]
tar zxvf mysql-5.1.31.tar.gz
cd mysql-5.1.31
./configure –prefix=/usr/local/mysql51
make
make install
# 先安裝 zlib
wget [url]http://www.zlib.net/zlib-1.2.3.tar.gz[/url]
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure
make
make install
# 再安裝 zziplib
wget [url]http://jaist.dl.sourceforge.net/sourceforge/zziplib/zziplib-0.13.50.tar.bz2[/url]
tar jxvf zziplib-0.13.50.tar.bz2
cd zziplib-0.13.50
./configure
make
make install
# 再安裝 LibPng
wget [url]ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.34.tar.gz[/url]
tar zxvf libpng-1.2.34.tar.gz
cd libpng-1.2.34
cp scripts/makefile.std makefile
make test
make install
# 再安裝 Freetype
wget [url]http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.8.tar.gz[/url]
tar zxvf freetype-2.3.8.tar.gz
cd freetype-2.3.8
./configure –prefix=/usr/local/modules/freetype
make
make install
# 再安裝 LibConv
wget [url]http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz[/url]
tar zxvf libiconv-1.12.tar.gz
cd libiconv-1.12
./configure
make
make install
wget [url]http://www.ijg.org/files/jpegsrc.v6b.tar.gz[/url]
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure –prefix=/usr/local/modules/jpeg6 –enable-shared –enable-static
make
make install
# 再安裝 GD
wget [url]http://www.libgd.org/releases/gd-2.0.35.tar.gz[/url]
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure –prefix=/usr/local/modules/gd –with-jpeg=/usr/local/modules/jpeg6 –with-png –with-zlib –with-freetype=/usr/local/modules/freetype
make
make install
# 再安裝 Lib XML2 (以防 PHP 出現錯誤)
wget [url]ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz[/url]
tar zxvf libxml2-2.7.3.tar.gz
cd libxml2-2.7.3
./configure
make
make install
# 再安裝 Open SSL (這用舊版本,因為某原因)
wget [url]http://www.openssl.org/source/openssl-0.9.7a.tar.gz[/url]
tar zxvf openssl-0.9.7a.tar.gz
cd openssl-0.9.7a
./config –openssldir=/usr/local/openssl
make
make install
# 最後安裝 PHP
wget [url]http://hk.php.net/get/php-5.2.8.tar.gz/from/this/mirror[/url]
tar zxvf php-5.2.8.tar.gz
cd php-5.2.8
./configure –prefix=/usr/local/php5-fastcgi –enable-mbstring –enable-pcntl –with-mysql=/usr/local/mysql51 –enable-fastcgi –enable-force-cgi-redirect –with-gd=/usr/local/modules/gd –with-zlib –with-png-dir=/usr/local/lib –with-jpeg-dir=/usr/local/modules/jpeg6 –with-freetype-dir=/usr/local/modules/freetype –with-iconv=/usr/local/lib –enable-gd-native-ttf –enable-dbase –enable-exif –enable-ftp –enable-sqlite-utf8 –enable-sockets –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-shmop –with-curl –with-openssl=/usr/local/openssl
make
make install
sed -e ’s/\.\///’ php.ini-dist > /usr/local/php5-fastcgi/lib/php.ini
strip /usr/local/php5-fastcgi/bin/php
# 先安裝 pcre
wget [url]ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.8.zip[/url]
unzip pcre-7.8.zip
cd pcre-7.8
./configure –enable-utf8 –enable-unicode-properties
make
make install
# 再安裝 bzip2
wget [url]http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz[/url]
tar zxvf bzip2-1.0.5.tar.gz
cd bzip2-1.0.5
make install
# 最後
wget [url]http://www.lighttpd.net/download/lighttpd-1.4.20.tar.gz[/url]
tar zxvf lighttpd-1.4.20.tar.gz
cd lighttpd-1.4.20
./configure –prefix=/usr/local/lighttpd –with-openssl=/usr/local/openssl
make
make install
cd doc
mkdir /usr/local/lighttpd/conf
cp lighttpd.conf /usr/local/lighttpd/conf/
cp rc.lighttpd.redhat /etc/init.d/lighttpd