Compilation and configuration of lightweight Web Server Lighttpd (forx86-linux)

Source: Internet
Author: User
Note: PCLinux: Ubuntu-10.10Linux User: rootlighttpd version: 1.4.30gcc version: 4.4.51. compile and install 1. 1. go to the lighttpd official website to download the corresponding version of the software package: Ghost (my remarks: PC Linux: Ubuntu-10.10Linux User: rootlighttpd version: 1.4.30gcc version: 4.4.5
1. Compile and install1.1. go to the lighttpd official website to download the corresponding version of the software package: http://www.lighttpd.net/ I download license lighttpd-1.4.30.tar.gz1.2. decompress the package to any directory (My is/root/Desktop/common) to get the folder lighttpd-1.4.301.3. create a shell script in the folder lighttpd-1.4.30 named: configure-x86.sh1.4. enter the following code in the shell script configure-x86.sh :#! /Bin/sh. /configure -- prefix =/opt/web/lighttpd-1.4.30-x86 -- host = i686-pc-linux -- build = i686-pc-linux -- disable-FEATURE -- enable-shared -- disable-static -- disable-lfs -- disable-ipv6 --- PACKAGE -- without-valgrind -- without-openssl -- without-kerberos5 -- without-pcre -- without-zlib -- without-bzip2 -- without-lua1.5. open the console, cd into the lighttpd-1.4.30 directory 1.6. add executable properties to the configure-x86.sh file and execute the command: chmod + x configure-x86.sh1.7. configure lighttpd and run the following command :. /configure-x86.sh1.8. compile lighttpd, execute the command: make1.9. install lighttpd, execute the command: make install1.10. after the installation is complete, generate the lib, sbin, and share folders in the installation directory/opt/web/lighttpd-1.4.30-x86, as shown in:  
2. Configuration2.1. manually create the following folders in the installation directory/opt/web/lighttpd-1.4.30-x86: cache, cgi-bin, config, log, sockets, upload, vhosts, webpages. As shown in:
2.2. Copy config. d, lighttpd. conf, and modules. conf in the doc/config directory of the source code package to the config folder in the installation directory, as shown in:
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.