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 人气:675
blog comments powered by Disqus


  • Ubuntu 10.10 to install eclipse-jee-helios-linux-gtk.tar.gz 2010-11-13

    Eclipse is the best Java development environment that supports windows, linux and other OS platforms, Ubuntu operating system platform as excellent, good horse with a good saddle, very easy to install Eclipse, The following steps will install the ecl

  • Learning ruby on rails video tutorials and e-book download 2009-03-10

    25, and are not large, fast download! http://www.railscasts.com/ Books, personal recommend Agile Web Development with Rails (Chinese version translated well, e-books is the first version 2) and Rails Recipes (print out bar, Value!), And ruby for rail

  • 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操作系统都自

  • Installing Ruby on Rails on Red Hat Enterprise Linux 4 2010-04-21

    Determine what Ruby RPMs are installed: $ rpm -qa | egrep '(ruby)|(irb)' ruby-libs-1.8.1-7.EL4.2 Uninstall Ruby RPMs: $ sudo rpm -e ruby-libs-1.8.1-7.EL4.2 Install Ruby from source: $ wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6-p114.tar.gz$ tar

  • 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

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



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

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.239 (s). 12 q(s)