LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-24-2007, 10:17 PM   #1
BigG
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Rep: Reputation: 0
system-config-httpd in RHEL5 - cant start apache :(


Hi is anyone else finding that after creating your virtual hosts with the GUI tool (system-config-httpd) in RHEL5 that they get an error along these lines:


Code:
[root@localhost ~]# service httpd start
Starting httpd: httpd: Syntax error on line 170 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_access.so into server: /etc/httpd/moduls/mod_access.so: cannot open shared object file: No such file or directory
[failed]
FC6 apparently has the same error buy there is an updated system-config-httpd (system-config-httpd-1.4.1-1.fc6 compared to 1.3.1-1.fc6) available for that. I don't understand how RedHat can allow their final build ofgive a problem like this, weren't there 2 beta builds before this? what ever happened to quality control?
 
Old 03-24-2007, 11:12 PM   #2
ninjaz
Member
 
Registered: Aug 2003
Location: Michigan
Distribution: RHEL v.4, Debian
Posts: 82

Rep: Reputation: 15
Posting your config file helps!
 
Old 03-25-2007, 10:25 AM   #3
BigG
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
httpd.conf

Ok here is section 1 only (i think this is the relevant part, i dont need section 2 or my virtual hosts do I?)

Code:
### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs-2.0/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# ScoreBoardFile: File used to store internal server process information.
# If unspecified (the default), the scoreboard will be stored in an
# anonymous shared memory segment, and will be unavailable to third-party
# applications.
# If specified, ensure that no two invocations of Apache share the same
# scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK.
#
#ScoreBoardFile run/httpd.scoreboard

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile "/var/run/httpd.pid"

#
# Timeout: The number of seconds before receives and sends time out.
#
TimeOut 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive on

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 100
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25 
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen *:80


#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On
 
Old 03-25-2007, 11:28 AM   #4
BigG
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I can see the line "LoadModule access_module modules/mod_access.so" at the top of the Dynamic shared object section but why would the GUI include modules that don't exist on the system? All i have configured is 1 name based virtual host, nothing fancy.....
 
Old 05-01-2007, 04:49 PM   #5
gmalleus
LQ Newbie
 
Registered: Oct 2003
Location: Pennsylvania
Distribution: Ubuntu for Desktops, CentOS for Servers
Posts: 5

Rep: Reputation: 0
I am having the same problem. When I installed system-config-httpd it changes the httpd.conf file to include some modules that don't exist. After commenting out those lines in the httpd.conf file I get errors telling me that the "Order" command is not defined. So I can no longer use Order allow,deny.

Have you figured out a solution to this problem?
 
Old 05-02-2007, 07:26 AM   #6
BigG
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Hi, I just had to manually put my hosts into the httpd.conf file (i just copied and pasted my hosts from the RHEL4 hosts.conf to the RHEL5 one and it worked fine.) Hope that helps you!
 
Old 06-10-2007, 04:37 PM   #7
runlevel
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Exclamation Fix found

i could research this a little more if i cared enough but i dont .. but after removing apache completly from the system... running just a basic # yum install httpd will allow you to use apache again... not sure wtf the deal is.
 
Old 11-23-2007, 03:17 AM   #8
frisket
LQ Newbie
 
Registered: Sep 2003
Location: Ireland
Distribution: RH9
Posts: 16

Rep: Reputation: 2
Apache still broken in RHEL5

Quote:
Originally Posted by runlevel View Post
i could research this a little more if i cared enough but i dont .. but after removing apache completly from the system... running just a basic # yum install httpd will allow you to use apache again... not sure wtf the deal is.
The deal is that it's still fatally broken. I just installed httpd this way on a fresh RHEL5 and half the modules are missing. Plus the shipped system-config-httpd doesn't seem to be for Apache2 as it creates an Apache 1.x httpd.conf.

I have no idea what RH are playing at here. The answer is to trash the installed httpd and download a non-RPM source of Apache2 and build it from scratch.

This is another nail in Red Hat's coffin. I long ago moved my personal work to Ubuntu but my employer's default server config is still RH.
 
Old 01-25-2008, 06:48 AM   #9
VapourIFH
LQ Newbie
 
Registered: May 2004
Distribution: RedHat, CentOS, Fedora
Posts: 5

Rep: Reputation: 0
Lightbulb

We have premium support with Redhat, so I placed a call with them on this. Will post when I hear. I may try using the FC6 RPM. But, hang on and I will find out the official fix and post it.
 
Old 01-26-2008, 08:51 AM   #10
BigG
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Well i just imported my RHEL4 Virtual hosts manually i gave up on the RHEL5 config tool ages ago (nearly a year!). Isnt thre RHEL5.1 out now?
 
Old 01-26-2008, 04:32 PM   #11
VapourIFH
LQ Newbie
 
Registered: May 2004
Distribution: RedHat, CentOS, Fedora
Posts: 5

Rep: Reputation: 0
Still waiting on Redhat. I submitted my rpm version, and performed all the updates (using rhel5.1 now).. Same. I did as you did and imported the virtual host config from rhel4. Works fine. Still going to get official answer though.
 
Old 01-30-2008, 11:06 AM   #12
lq@american-hero.com
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Its a known bug

Quote:
Originally Posted by VapourIFH View Post
Still waiting on Redhat. I submitted my rpm version, and performed all the updates (using rhel5.1 now).. Same. I did as you did and imported the virtual host config from rhel4. Works fine. Still going to get official answer though.

Ran into the same problem with CENTOS5. Its a known bug albiet an old one...

The fix is to apply the patch found here to the system-config-httpd script
"https://bugzilla.redhat.com/show_bug.cgi?id=180056"
 
Old 01-30-2008, 04:58 PM   #13
VapourIFH
LQ Newbie
 
Registered: May 2004
Distribution: RedHat, CentOS, Fedora
Posts: 5

Rep: Reputation: 0
Official redhat support response:

Greetings,

system-config-httpd-1.3.3.3-1 package is provided in RHEL FasTrack channel. You can download it manually from RHN and install using 'rpm -Uvh' command or you need to subscribe your system to RHEL FasTrack channels and run 'yum update system-config-httpd'

Follow below steps to download rpm package from RHN.

* Login to RHN (https://rhn.redhat.com) with your RHN ID and password
* Click on "Channels" option on top red strip
* In "Filter by Product Channel:" drop down list select appropriate channel and architecture and click on "Filter" button
* On Channel List page click on the link for appropriate channel (RHEL FasTrack)
* On the next page click on "Packages" link
* In "Filter by Package" box, type the name of the package that you wish to download and click on "Go"
* List of packages will be displayed for different versions of the package, click on the version you wish to download
* Click on "Download Package" link to start download of the package

Following link will guide you to subscribe your system to sub channel

http://kbase.redhat.com/faq/FAQ_58_6227.shtm
 
Old 01-31-2008, 06:31 PM   #14
BigG
LQ Newbie
 
Registered: Feb 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks guys your posts have been really helpful!
 
  


Reply

Tags
apache, rhel5



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache: httpd fails to start PhilTR Linux - Server 20 02-24-2007 03:05 PM
HTTPD (Apache) config oddity rblampain Programming 4 07-11-2005 07:59 AM
apache httpd.config question fibbi Linux - Software 4 10-18-2003 10:07 AM
Apache httpd won't start rob19 Linux - Software 6 05-06-2003 10:41 PM
Apache problem - httpd won't start. Iced_Falcon Linux - Networking 3 12-22-2001 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration