wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2.tar.gz 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 http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.31.tar.gz/from/http://mysql.ntu.edu.tw/ tar zxvf mysql-5.1.31.tar.gz cd mysql-5.1.31 ./configure --prefix=/usr/local/mysql51 make make install
# 先安裝 zlib wget http://www.zlib.net/zlib-1.2.3.tar.gz tar zxvf zlib-1.2.3.tar.gz cd zlib-1.2.3 ./configure make make install
# 再安裝 zziplib wget http://jaist.dl.sourceforge.net/sourceforge/zziplib/zziplib-0.13.50.tar.bz2 tar jxvf zziplib-0.13.50.tar.bz2 cd zziplib-0.13.50 ./configure make make install
# 再安裝 LibPng wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.34.tar.gz tar zxvf libpng-1.2.34.tar.gz cd libpng-1.2.34 cp scripts/makefile.std makefile make test make install
# 再安裝 Freetype wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.8.tar.gz tar zxvf freetype-2.3.8.tar.gz cd freetype-2.3.8 ./configure --prefix=/usr/local/modules/freetype make make install
# 再安裝 LibConv wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz tar zxvf libiconv-1.12.tar.gz cd libiconv-1.12 ./configure make make install
wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz tar zxvf jpegsrc.v6b.tar.gz cd jpeg-6b ./configure --prefix=/usr/local/modules/jpeg6 --enable-shared --enable-static make make install
# 再安裝 GD wget http://www.libgd.org/releases/gd-2.0.35.tar.gz 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 ftp://xmlsoft.org/libxml2/libxml2-2.7.3.tar.gz tar zxvf libxml2-2.7.3.tar.gz cd libxml2-2.7.3 ./configure make make install
# 再安裝 Open SSL (這用舊版本,因為某原因) wget http://www.openssl.org/source/openssl-0.9.7a.tar.gz tar zxvf openssl-0.9.7a.tar.gz cd openssl-0.9.7a ./config --openssldir=/usr/local/openssl make make install
# 最後安裝 PHP wget http://hk.php.net/get/php-5.2.8.tar.gz/from/this/mirror 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 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.8.zip unzip pcre-7.8.zip cd pcre-7.8 ./configure --enable-utf8 --enable-unicode-properties make make install
# 再安裝 bzip2 wget http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz tar zxvf bzip2-1.0.5.tar.gz cd bzip2-1.0.5 make install
# 最後 wget http://www.lighttpd.net/download/lighttpd-1.4.20.tar.gz 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