system-config-httpd in RHEL5 - cant start apache :(
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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.....
Distribution: Ubuntu for Desktops, CentOS for Servers
Posts: 5
Rep:
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.
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!
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.
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.
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.
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.
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"
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.