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.
There is a command to terminate the process directly under the Linux system. The co
Ncurses is a library. The most used component is a form. In the operation of Linux system, many frie
Fedora is a kind of Linux system, most of the operations also need commands to complete, there are u
In Linux, you can use ssh to transfer files to the FPT space and back up some impor
How to use the Linux system swap and zram swap?
Linux system filezille file modification time is not correct how to do?
How to use commands to transfer files between Mac and Linux
How to use rmdir command guide in Linux
Linux bash shell vulnerability detection and repair method
Five steps in the Linux boot process
How to make Live USB under Linux?
How to use commands to manage files in Linux
How to use clam antivirus antivirus in Linux
Windows 7 hard disk partitioning through disk management
Xinxing finishing Linux part of the commonly used command
After the computer runs for a while, the webpage can't be opened
Fingerprint recognition function of notebook under Windows 7
How to manually add and remove Windows services (2)
How to set up Win8 system to turn off hybrid shutdown?
How to solve the problem of black edge after win7 full-screen game?