1. php安裝
tar zxf php-5.3.2 –C /usr/src
cd /usr/src/php-5.3.2
./configure --prefix=/usr/local/php5 --enable-force-cgi-redirect --enable-fastcgi
make;make install
cp php.ini.dist /etc/php.ini
cd /usr/local/php5/bin
./php-cgi –b 127.0.0.1:9999
2、pcre安裝
tar -zxf pcre-7.8.tar.gz
cd pcre-7.8
./configure
make;make install
3、lighttpd安裝
tar -jxf lighttpd-1.4.28.tar.bz2
cd lighttpd-1.4.28
./configure
make;make install
mkdir -p /srv/www/htdocs
mkdir /var/log/lighttpd
touch /var/log/lighttpd/access.log
touch /var/log/lighttpd/error.log
useradd lighttpd
chown -R lighttpd.lighttpd /var/log/lighttpd
vi /usr/src/lighttpd-1.4.28/doc/config/lighttpd.conf
server.use-ipv6 = "disable"
vi /usr/src/lighttpd-1.4.28/doc/config/conf.d/fastcgi.conf
cd /srv/www/htdocs/
touch index.php
cat >index.php
lighttpd test!!!
/usr/local/sbin/lighttpd -f /usr/src/lighttpd-1.4.28/doc/config/lighttpd.conf //開啟lighttpd