操作系统
:CentOS5.3--(Linux version 2.6.18-128.el5
(mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat
4.1.2-44)) #1 SMP Wed Jan 21 10:41:14 EST 2009)
lighttpd
:1.4.23
一、Download and install lighttpd
# cd /opt
# wget [http://www.lighttpd.net/download/lighttpd-1.4.23.tar.gz]
# tar jxvf lighttpd-1.4.23.tar.gz
# cd lighttpd-1.4.23
# ./configure --prefix=/usr/local/lighttpd
some error as this:
configure: error: pcre-config not found, install the pcre-devel package or bui with --without-pcre
configure: error: zlib-headers and/or libs where not found, install them or build with --without-zlib
二、Install all nessary development libraries
You need to install following libraries to compile required modules and features:
- glib2-devel : Gnome header files for version 2 of the GLib library
- openssl-devel – Used by core and SSL support
- pcre-devel - Used by mod_redirect, mod_rewrite,
- bzip2-devel - Use by compress-bzip2
- zlib-devel - Used by compress-gzip and compress-deflate. It contains the header files and libraries.
yum install gcc glib2-devel openssl-devel pcre-devel bzip2-devel gzip-devel zlib-devel
三、install
# ./configure --prefix=/usr/local/lighttpd
# make
# make install
四、Configure lighttpd
# cp doc/sysconfig.lighttpd /etc/sysconfig/lighttp
拷贝配置文件
# mkdir /etc/lighttpd
# cp doc/lighttpd.conf /etc/lighttpd/lighttpd.conf
修改配置文件服务路径
# mkdir -p /www/yoursite/data1
# vi /etc/lighttpd/lighttpd.conf
server.document-root = "/srv/www/htdocs/" -> server.document-root = "/www/yoursite/data1"
拷贝启动脚本
# cp doc/rc.lighttpd.redhat /etc/init.d/lighttpd
修改启动脚本中的lighttpd的安装位置
# vi /etc/init.d/lighttpd
lighttpd="/usr/sbin/lighttpd" -> ighttpd="/usr/local/lighttpd/sbin/lighttpd"
看是否能启动
# /etc/init.d/lighttpd start
可能会出现opening errorlog '/var/log/lighttpd/error.log' failed: No such file or directory
日志文件不存在,设置一个正确的路径就好了。
# mkdir -p /var/log/lighttpd
添加到开机自动启动服务
# chkconfig lighttpd on
分享到:
相关推荐
LINUX操作系统_CentOS5.3_超详细的安装图文教程.doc
Centos5.3 下安装Oracle 11g
Centos5.3安装lm_sensors_cpu温度监控 Centos5.3安装lm_sensors_cpu温度监控
Centos5.3安装oracle10g过程 详细
CentOS5.3挂载NTFS CentOS5.3挂载NTFS
CentOS 5.3下安装ispCP教程CentOS 5.3下安装ispCP教程CentOS 5.3下安装ispCP教程CentOS 5.3下安装ispCP教程
CentOS5.3系统CentOS5.3系统
这是我们在学习linux时,安装centos的全过程。 基本上是一目了然。希望能给你带来帮助,不过,针对不同的硬件系统或环境,具体安装可能会有一些小的不同。
CentOS 5.3安装Postfix+Extmail邮件服务器.pdf
CentOS5.3安装Oracle11g(图文解说).pdf
CentOS5.3安装postfix+extmail邮件系统
资料用截图显示出centos5.3的安装步骤
此文件由wdlinux收集,整理了centos5.3至5.8DVD版32_64位系统种子码
centos5.3 配置DNS详解centos5.3 配置DNS详解centos5.3 配置DNS详解centos5.3 配置DNS详解
CentOS5.3下JDK1.5的最完整安装过程。
包含CentOS5.3环境下编译FFmepg开源项目的过程记录与依赖的源码包。FFmpeg 是一个用来记录,转换,流媒体audio和video的开源库,在Linux下开发,但可以在许多操作系统下编译,包括Windows 。
阿里云服务器centos+apache+php5.3+mysql+Zend Guard Loader+memcached+ftp环境搭建笔记
CentOS5.3下安装oracle10G超详细
perl-DBD-MySQL-3.0007-2.el5.i386.rpm perl-DBI-1.52-2.el5.i386.rpm 在新系统CentOS5.3上安装mysql报如下错误 error: Failed dependencies: perl(DBI) is needed by mysql-5.0.77-4.el5_5.4.i386 会需要这两个包.