Wednesday, February 23, 2011

Linux operating system to start httpd failed solution

RedHatLinuxenterprise5 starthttpdfaild linuxhttpd: httpd startup failed me in a virtual machine inside encounter this problem, try the many methods are unable to start, later discovered that the problem is there a/etc/httpd/conf/directory called httpd.conf file.

In the same directory as there is another call httpd.conf.bak, as long as the httpd.conf.bak copies the contents of the httpd.conf file, overwriting the original content can be launched, to run servicehttpdstart surprise in shell found that starting httpd OK with starthttpdok servicehttpdstatus can see httpd is running. Feeling comfortable. Although only a novice questions, dishes, haha I still write it down, maybe what newbie also experience this problem can help. Later I also detailed troubleshooting a bit to be a problem. The result may be unexpected. The original is to use the [System]-[management]-[Server]-[HTTP] tool set, and then saved to. Use this tool to set the content after it's had quite a lot of places with initial settings are not the same. I find that modify the/etc/httpd/conf/httpd.conf file solves the problem: 1. it will comment out this line ServerName, i.e. line most preceded by a #. 2. the ServerAdmin this line to write complete. Such as: ServerAdmin & nbspadmin@example.com 3. Lockfile file path with the correct, or are simply comment out (beginning with #) 4. Loadmodule ... Loadmodule ... ... ... ... # this many rows. In fact, these are omitted! is wrong and should be a problem cause HTTP code itself. We use original file replacement. Loadmodule…… Use the corresponding/etc/httpd/conf/httpd.conf.bak inside content replace as follows: LoadModuleauth_basic_modulemodules/mod_auth_basic.so LoadModuleauth_digest_modulemodules/mod_auth_digest.so LoadModuleauthn_file_modulemodules/mod_authn_file.so LoadModuleauthn_alias_modulemodules/mod_authn_alias.so LoadModuleauthn_anon_modulemodules/mod_authn_anon.so LoadModuleauthn_dbm_modulemodules/mod_authn_dbm.so LoadModuleauthn_default_modulemodules/mod_authn_default.so LoadModuleauthz_host_modulemodules/mod_authz_host.so LoadModuleauthz_user_modulemodules/mod_authz_user.so LoadModuleauthz_owner_modulemodules/mod_authz_owner.so LoadModuleauthz_groupfile_modulemodules/mod_authz_groupfile.so LoadModuleauthz_dbm_modulemodules/mod_authz_dbm.so LoadModuleauthz_default_modulemodules/mod_authz_default.so LoadModuleldap_modulemodules/mod_ldap.so LoadModuleauthnz_ldap_modulemodules/mod_authnz_ldap.so LoadModuleinclude_modulemodules/mod_include.so LoadModulelog_config_modulemodules/mod_log_config.so LoadModulelogio_modulemodules/mod_logio.so LoadModuleenv_modulemodules/mod_env.so LoadModuleext_filter_modulemodules/mod_ext_filter.so LoadModulemime_magic_modulemodules/mod_mime_magic.so LoadModuleexpires_modulemodules/mod_expires.so LoadModuledeflate_modulemoDules/mod_deflate.so LoadModuleheaders_modulemodules/mod_headers.so LoadModuleusertrack_modulemodules/mod_usertrack.so LoadModulesetenvif_modulemodules/mod_setenvif.so LoadModulemime_modulemodules/mod_mime.so LoadModuledav_modulemodules/mod_dav.so LoadModulestatus_modulemodules/mod_status.so LoadModuleautoindex_modulemodules/mod_autoindex.so LoadModuleinfo_modulemodules/mod_info.so LoadModuledav_fs_modulemodules/mod_dav_fs.so LoadModulevhost_alias_modulemodules/mod_vhost_alias.so LoadModulenegotiation_modulemodules/mod_negotiation.so LoadModuledir_modulemodules/mod_dir.so LoadModuleactions_modulemodules/mod_actions.so LoadModulespeling_modulemodules/mod_speling.so LoadModuleuserdir_modulemodules/mod_userdir.so LoadModulealias_modulemodules/mod_alias.so LoadModulerewrite_modulemodules/mod_rewrite.so LoadModuleproxy_modulemodules/mod_proxy.so LoadModuleproxy_balancer_modulemodules/mod_proxy_balancer.so LoadModuleproxy_ftp_modulemodules/mod_proxy_ftp.so LoadModuleproxy_http_modulemodules/mod_proxy_http.so LoadModuleproxy_connect_modulemodules/mod_proxy_connect.so LoadModulecache_modulemodules/mod_cache.so LoadModulesuexec_modulemodules/mod_suexec.so LoadModuledisk_cache_modulemodules/mod_disk_cache.so LoadModulefile_cache_modulemodules/mod_file_cache.so LoadModulemem_cache_modulemodules/mod_mem_cache.so LoadModulecgi_modulemodules/mod_cgi.so OK, so you should be able to start the httpd service, please use the shell command to start the service Additionally servicehttpdstart requires that these changed only a small portion of the content, many options are not the same as with initial httdp.conf, please detailed look at the related function on, the changes you want.

No comments:

Post a Comment