Migrating Apache Http Server 1.3 Configuration Files - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

Important
It is vital that the line specifying the new configuration directory be inserted when
migrating an existing configuration.
• The
and
ab
logresolve
moved from the
/usr/sbin/
with absolute paths for these binaries to fail.
• The
command has been replaced. — The
dbmmanage
replaced by
. Refer to
htdbm
for more information.
• The
configuration file has been renamed. — The
logrotate
been renamed from
The next section outlines how to migrate an Apache HTTP Server 1.3 configuration to the 2.0
format.
2. Migrating Apache HTTP Server 1.3 Configuration
Files
This section details migrating an Apache HTTP Server 1.3 configuration file to be utilized by
Apache HTTP Server 2.0.
If upgrading to Red Hat Enterprise Linux 4.5.0 from Red Hat Enterprise Linux 2.1, note that the
new stock configuration file for the Apache HTTP Server 2.0 package is installed as
/etc/httpd/conf/httpd.conf.rpmnew
untouched. It is entirely up to you whether to use the new configuration file and migrate the old
settings to it, or use the existing file as a base and modify it to suit; however, some parts of the
file have changed more than others and a mixed approach is generally the best. The stock
configuration files for both version 1.3 and 2.0 are divided into three sections.
If the
/etc/httpd/conf/httpd.conf
a saved a copy of the original configuration file is available, it may be easiest to invoke the
command, as in the following example (logged in as root):
diff -u httpd.conf.orig httpd.conf | less
This command highlights any modifications made. If a copy of the original file is not available,
extract it from an RPM package using the
example:
rpm2cpio apache-<version-number>.i386.rpm | cpio -i --make
programs have been moved. — These utility programs have been
directory and into the
Section 2.4.5, "The
/etc/logrotate.d/apache
and the original version 1.3
file is a modified version of the newly installed default and
rpm2cpio
Migrating Apache HTTP Server 1.3
directory. This causes scripts
/usr/bin/
command has been
dbmmanage
and
mod_auth_dbm
mod_auth_db
logrotate
to
/etc/logrotate.d/httpd
httpd.conf
and
commands, as in the following
cpio
Modules"
configuration file has
.
is left
diff
149

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ENTERPRISE LINUX 4.5.0 and is the answer not in the manual?

Questions and answers

Table of Contents