Article Title: UbuntuLighttpd lightweight web server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The combination of Lighttpd and PHP is now more and more common. But to be honest, if not necessary, I recommend that you use the combination of Apache and PHP. After all, the maturity and stability of the LAMP architecture have been tested by time.
So when is the combination of Lighttpd and PHP more worthwhile? You can consider the following points: if the traffic volume is large and the hardware resources are tight, Lighttpd is suitable for you. If you prefer to speed more than stable, Lighttpd is suitable for you.
OS: ubuntu server 8.04.1
Software: lighttpd-1.4.20
Software: PHP 5.2.6.tar.gz
Apt-get install libmysqlclient15-dev libpng12-dev
1. Install php.5.2.6
Tar zxvf php.5.2.6.tar.gz
Cd php.5.2.6
. /Configure -- prefix =/usr/local/php -- enable-fastcgi -- enable-force-cgi-redirect -- with-config-file-path =/usr/local/php/etc -- disable-ipv6 -- enable-libxml -- with-gd -- enable-gd-native-ttf -- with-mysql =/usr/lib/mysql/lib -- with-mysqli =/usr/bin /mysql_config -- enable-xml -- with-freetype-dir' -- with-jpeg-dir -- with-png-dir -- with-ttf = shared -- enable-static -- with-zlib- dir -- with-ttf
Make
Make install
2. Install lighttpd
Tar zxvf lighttpd-1.4.20.tar.gz
Cd lighttpd-1.2.40
./Configure -- prefix =/usr/local/lighttpd -- disable-ipv6 -- with-mysql =/usr/bin/mysql_config -- with-zlib -- with-bzip2 -- with-fam -- with-memcache
Make
Make install
Mkdir-p/usr/local/lighttpd/etc
Mkdir-p/usr/local/lighttpd/log
Mkdir-p/usr/local/lighttpd/run
Cp./doc/lighttpd. conf/usr/local/lighttpd/etc/
[1] [2] [3] Next page