RHEL as 4 environment to install lighttpd

In reference Robbin "in the Linux platform to install and configure Ruby on Rails explain" after the RHEL environment a try, and configure successfully.

step 1: check whether the system is installed to support the library pcre
# Rpm-qa | grep pcre

Problem: I have been prompted to install the system, but because the version problem, can not be installed LIGHTTPD, therefore re-download and install PCRE

In / usr / local / src / under
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.6.tar.gz

tar xzvf pcre-7.6.tar.gz
Pcre-7.6 directory to generate and access to the directory
Configure & compile pcre
. / configure
make clean
make install

Supported database installation is complete

step 2: install lighttpd
First of all in / usr / local / src / under lighttpd download the original file
wget http://www.lighttpd.net/download/lighttpd-1.4.20.tar.gz

tar xzvf lighttpd-1.4.20.tar.gz generated lighttpd-1.4.20 directory, enter the directory
Compile:. / Configure - prefix = / usr / local / lighttpd
configure is finished, will give an activation module and did not activate the list of modules, you can check whether their required modules have been activated enable the module in the must have "mod_rewrite" This one, otherwise a re-examination of pcre installed. Then compile and install:
make & & make clean & & make install

step 3 to configure the environment
Compiled configuration: The reason to do so, please see doc / rc.lighttpd.redhat will understand
cp doc / sysconfig.lighttpd / etc / sysconfig / lighttpd
mkdir / etc / lighttpd
cp doc / lighttpd.conf / etc / lighttpd / lighttpd.conf
cp doc / rc.lighttpd.redhat / etc / init.d / lighttpd

Modify the contents of the following documents of the following
/ etc / init.d / lighttpd, put
lighttpd = / usr / sbin / lighttpd
lighttpd = / usr / local / lighttpd / sbin / lighttpd

The document used to start and stop LIGHTTD Service
This script is used to control the startup lighttpd turn off and re-starting:
/ etc / init.d / lighttpd start
/ etc / init.d / lighttpd stop
/ etc / init.d / lighttpd restart

If you wish to start when the server restart lighttpd, then:
chkconfig lighttpd on

step 4: Configure / usr / local / lighttpd.conf
The main attention should be paid to you, server.document-root, server.error-log, accesslog.filename need to specify the appropriate directory, by default, some directory or file does not exist, it is necessary to set up.

Finished! !

分类:Ruby 时间:2009-03-05 人气:760
blog comments powered by Disqus


  • In the Linux platform to install and configure Ruby on Rails Detailed 2009-03-02

    ruby on rails recommend the production environment is running Linux / FreeBSD / Unix, or Unix family of operating systems, using lighttpd + FCGI solution. The following will be my Linux operating system, lighttpd + FCGI, MySQL database as an example,

  • In the Linux platform, install and configure Ruby on Rails Xiangjie 2010-02-12

    uby on rails running the recommended production environment is Linux / FreeBSD / Unix, the Unix family of operating systems, using lighttpd + FCGI solution. The following Linux operating system, I will, lighttpd + FCGI, MySQL database, for example, f

  • 在Linux平台上安装和配置Ruby on Rails详解 2014-03-01

    ruby on rails推荐的生产运行环境是Linux/FreeBSD/Unix,即Unix系列的操作系统,采用lighttpd+FCGI的解决方案.以下我将以Linux操作系统,lighttpd+FCGI,MySQL数据库为例,从源代码编译安装开始讲解. 在安装之前,应该确认Linux操作系统已经安装好gcc编译器,否则请用Linux安装光盘先行安装gcc编译器: gcc –v 如能返回gcc版本号,则gcc正确安装. 一.安装Ruby解析器 一些Linux发行版本,MacOSX操作系统都自

  • In the Windows platform using Apache2.2 and Mongrel running Ruby on Rails 2009-03-02

    First, install Ruby, rails, mongrel and Apache2.2 Rubyforge download from the web site One-Click Ruby Install, run setup on installed ruby and rubygems. Run the command: gem install rails-y gem install mongrel-y gem install mongrel_service-y Installe

  • At Debian (includes Ubuntu) use the APT platform installed Ruby and Rails 2009-03-11

    Passenger Responsible person Phusion , Announced two days before the DebGem (RubyGem to APT conversion service) After the Debian and Ubuntu systems administrators and users can use APT to install and maintain ways to ruby and rails systems environmen

  • (Turn) in the Windows platform running Apache2.2 and Mongrel Ruby on Rails 2011-01-10

    Director: robbin Read: 1067 times Comments: 0 Update Time :2008-12-16 Collection First, install Ruby, rails, mongrel and Apache2.2 Rubyforge download from One-Click Ruby Install, run the installation program to install the ruby and rubygems. Run the

  • "Ruby on Rails for Oracle Applications" Frequently Asked Questions 2010-02-16

    Directory Why RUBY ON RAILS? Definition What is Ruby? What is Rails? Model - View - Controller pattern (MVC) is what? RubyGems What is this? What is OCI8? ORACLE database connection To use the Oracle database to run Ruby on Rails, what needs to be in

  • Let Ruby On Rails into the Embedded Development 2009-03-17

    In the embedded Linux development, and C are a pair of golden partner, almost to occupy the vast majority of the domestic market and become the mainstream model of embedded development. At present, for some equipment to do configuration interface, ma

  • Introduced the Ruby On Rails 2009-11-10

    === To http://kiwi.csie.chu.edu.tw/blog/archives/133 This article from the PHP and Web programmers point of view, and gradually bring out the Ruby on Rails and Web Application Framework of the advantages of the concept structure. Next Introduction to

  • Windows下Ruby on Rails开发环境安装配置图文教程 2013-10-02

    这篇文章主要介绍了Windows下Ruby on Rails开发环境安装配置图文教程,ROR初学者必看,需要的朋友可以参考下 本文详细介绍如何在Windows配置Ruby on Rails 开发环境,希望对ROR初学者能有帮助. 一.下载并安装Ruby Windows下安装Ruby最好选择 RubyInstaller(一键安装包). 下载地址: http://rubyforge.org/frs/?group_id=167 . 我们这里下载目前较新的rubyinstaller-1.9.3-p0.e

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 闽ICP备15018612号

processed in 0.138 (s). 13 q(s)