CentOS system Lighttpd installation skills

  

Lighttpd is an open source web server software, many friends encountered a lot of trouble during the installation, the following small series for everyone to introduce Lighttpd installed CentOS installation, installation failed friends Can refer to the next.

CentOS lighttpd installation

wget http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz

tar zxvf lighttpd *

cd lightt*

. /configure --prefix=/usr/local/lighttpd --with-pcre

CentOS lighttpd installation is missing pcre-devel

yum install pcre-devel

. /configure --with-pcre

make

make install

Installing with apt-get install lighttpd under Ubuntu is a lot easier, CentOS lighttpd installs itself Configured.

cp doc/sysconfig.lighttpd /etc/sysconfig/lighttpd

mkdir /etc/lighttpd

Then copy the default configuration file

cp doc/Lighttpd.conf /etc/lighttpd/lighttpd.conf

cp doc/rc.lighttpd.RedHat /etc/init.d/lighttpd

Then use whereis lighttpd to find the location in /usr/local /sbin/lighttpd

In the case of vim /etc/init.d/lighttpd, find the prog=“lighttpd” section, comment out the default, add:

lighttpd=“/usr /local/sbin/lighttpd”

In mvardir lighttpd under /var/log/, create two more files access.log and error.log

The default website directory configuration is:

server.document-root = “/srv/www/htdocs/”

The above is the introduction of CentOS to install Lighttpd. This article explains the problems encountered when installing Lighttpd. If you encounter the same problem, you can try the method described in this article.

Copyright © Windows knowledge All Rights Reserved