Solved

Having problems with a new apache installation

Posted on 2013-01-10
2
258 Views
Last Modified: 2013-01-17
I've got a brand new Red Hat server 6.3 that I'm installing apache on.  I've run yum and installed apache 2.2.15

I'm basically cloning an older server so I've copies all of the config files over.  the problem is it's complaining about a ton of directives some of which don't apply until version 2.4 and others that are still valid.

It doesn't like
order allow,deny
SSLENGINE
SSLCertificateFile
BrowserMatch
DirectoryIndex   and others.

I'm getting to the point where I suspect the problem is not invalid directives, but some kind of configuration error in the build.

I shoudl also mention that I'm running selinux, but I've just turned it off to see if that was contributing to the problem, but got the same results.
0
Comment
Question by:geekdad1
2 Comments
 
LVL 34

Assisted Solution

by:gr8gonzo
gr8gonzo earned 250 total points
ID: 38767034
Copying configs is usually a bad idea unless you're a pro with Apache configs. Sometimes directive names or syntaxes change. In this case, all of the directives you've specified have been around for a while, but they are not built into Apache. They are bits of functionality that are added by extra plugins:

BrowserMatch - provided by mod_setenvif
DirectoryIndex is provided by mod_dir
Order is provided by mod_athz_host in 2.2
The two SSL directives are provided by mod_ssl

When you use yum to install Apache, sometimes it doesn't install all the modules / plugins. The yum repository often has these modules available as separate downloads to install. Something I usually do is:

cd ~
yum list > yum.list       <-- Creates just a cached copy of the yum.list command
grep -i "httpd" yum.list     <-- Search the cached copy for anything and everything Apache

If you want to look for something specific like mod_ssl, try:

grep -i "httpd" yum.list | grep -i "ssl"

You should be able to yum install the plugins to enable the missing functionality. I'm a little curious as to why the default install didn't have mod_authz_host and mod_setenvif already enabled, though. Usually those modules are common enough to be built into the server (it's not absolutely required, though, so...)
0
 
LVL 33

Accepted Solution

by:
shalomc earned 250 total points
ID: 38774006
it is possible that the modules are installed but are not enabled in the apache config file.

Look for a section with lots of LoadModule directives. Some are likely to be commented out.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
awk sed 8 67
maybe no no httpd.conf 6 62
Linux mount of Windows Shared Now Fails 8 76
Post Clonezilla image restore issue 6 36
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question