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
tar xzvf pcre-7.6.tar.gz
Pcre-7.6 directory to generate and access to the directory
Configure & compile pcre
. / configure
Supported database installation is complete
step 2: install lighttpd
First of all in / usr / local / src / under lighttpd download the original file
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.
Related Posts of RHEL as 4 environment to install lighttpd
Now do live more and more often required to use eclipse in java and ruby & rails project conducted between the tangential shear from the past, because in the rails project used a coloring Aptana preferences, the results open the java project sour ...
Master the ability to reuse code very familiar with the new API's fast. This is because, he once used a lot of the API, have a lot of reusable code. He knows what is available and what is deficient. He has been using Qt, also used by gtk +, also used
ROR is Ruby on Rails. Ruby is a well-known has been very good dynamic language It's dynamic language. Simple and easy. Dynamic languages are interpreted, but the performance may make a discount, but not absolute, because the application is complex, th
Private http://www.lifevv.com/tenyo/doc/20070605102040991.html c3p0 for open source's JDBC connection pool, with the release hibernate. This article describes how to use the hibernate configuration in c3p0. c3p0 connection pool configuration is v ...
Hibernate in the configuration file: <properties> <property name="hibernate.hbm2ddl.auto" value="create" /> </ properties> Parameter Description: validate load hibernate, the authentication to create a database t ...
This article contains a list of ruby on rails routing examples. If you find you have any questions please leave a comment. Routes are processed from the top of routes.rb down. If a route is matched it will stop processing the routes.rb file and use that r
According to Sun's definition, JavaBean is a reusable software components. In fact JavaBean is a Java class, through the package into a property and methods of treatment of a function or a business object, referred to as bean. Because JavaBean is ...
Development of procedures for the use of hibernate when, some time there is no need to fill in the fields, but after the hibernate query time reported "Java.sql.SQLException: Value'0000-00-00 'can not be represented as java.sql.Timestamp ...
dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q
Hibernate cache: 2-bit cache, also known as process-level cache or SessionFactory level cache, secondary cache can be shared by all of the session Cache configuration and the use of: Will echcache.xml (the document code in hibernate package directory ...