UbuntuLighttpd lightweight web Server

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.