标题: apache 在安装后的启动时报错。急等解决方法。 [打印本页] 作者: birdeng 时间: 2004-08-18 11:43 标题: apache 在安装后的启动时报错。急等解决方法。 请问大家,我在安装好APACHE后,在开启服务时出现一下错误。希望大家协助解决一下。
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/local/apache/bin/apachectl start: httpd could not be started
#
# 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.
# Please read the file http://httpd.apache.org/docs/dso.html for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order in which modules are loaded is important. Don't change
# the order below without expert advice.
#
# Example: ((((应该这里就是提示错误的地方了)))
# LoadModule foo_module libexec/mod_foo.so
LoadModule mmap_static_module libexec/mod_mmap_static.so
LoadModule vhost_alias_module libexec/mod_vhost_alias.so
LoadModule env_module libexec/mod_env.so
LoadModule config_log_module libexec/mod_log_config.so
LoadModule agent_log_module libexec/mod_log_agent.so
LoadModule referer_log_module libexec/mod_log_referer.so
LoadModule mime_magic_module libexec/mod_mime_magic.so
LoadModule mime_module libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module libexec/mod_status.so
LoadModule info_module libexec/mod_info.so
LoadModule includes_module libexec/mod_include.so
LoadModule autoindex_module libexec/mod_autoindex.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
LoadModule imap_module libexec/mod_imap.so
LoadModule action_module libexec/mod_actions.so
LoadModule speling_module libexec/mod_speling.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule anon_auth_module libexec/mod_auth_anon.so
LoadModule dbm_auth_module libexec/mod_auth_dbm.so
#LoadModule db_auth_module libexec/mod_auth_db.so
LoadModule digest_module libexec/mod_digest.so
LoadModule proxy_module libexec/libproxy.so
LoadModule cern_meta_module libexec/mod_cern_meta.so
LoadModule expires_module libexec/mod_expires.so
LoadModule headers_module libexec/mod_headers.so
LoadModule usertrack_module libexec/mod_usertrack.so
LoadModule example_module libexec/mod_example.so
LoadModule unique_id_module libexec/mod_unique_id.so
LoadModule setenvif_module libexec/mod_setenvif.so
#LoadModule ssl_module libexec/libssl.so
#
# 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.
#作者: HonestQiao 时间: 2004-08-18 12:00 标题: apache 在安装后的启动时报错。急等解决方法。 请你明确标出205行出错的是哪一行作者: HonestQiao 时间: 2004-08-18 12:01 标题: apache 在安装后的启动时报错。急等解决方法。 等等,你先说说你是怎么安装的作者: birdeng 时间: 2004-08-18 12:04 标题: apache 在安装后的启动时报错。急等解决方法。 我原来安装的是1.3.27版的APACHE,现在我把他升级成1.3.31版。
方法很简单啊,停止原来的服务后,
./CONFIGURE
MAKE
MAKE INSTALL
这个过程都很正常啊。
只是在运行的时候出现上面的错误。
Usage: configure [options]
Options: [defaults in brackets after descriptions]
General options:
--quiet, --silent do not print messages
--verbose, -v print even more messages
--shadow[=DIR] switch to a shadow tree (under DIR) for building
Stand-alone options:
--help, -h print this message
--show-layout print installation path layout (check and debug)
Installation layout options:
--with-layout=[F:]ID use installation path layout ID (from file F)
--target=TARGET install name-associated files using basename TARGET
--prefix=PREFIX install architecture-independent files in PREFIX
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
--bindir=DIR install user executables in DIR
--sbindir=DIR install sysadmin executables in DIR
--libexecdir=DIR install program executables in DIR
--mandir=DIR install manual pages in DIR
--sysconfdir=DIR install configuration files in DIR
--datadir=DIR install read-only data files in DIR
--iconsdir=DIR install read-only icon files in DIR
--htdocsdir=DIR install read-only welcome pages in DIR
--manualdir=DIR install read-only on-line documentation in DIR
--cgidir=DIR install read-only cgi files in DIR
--includedir=DIR install includes files in DIR
--localstatedir=DIR install modifiable data files in DIR
--runtimedir=DIR install runtime data in DIR
--logfiledir=DIR install logfile data in DIR
--proxycachedir=DIR install proxy cache data in DIR
Configuration options:
--enable-rule=NAME enable a particular Rule named 'NAME'
--disable-rule=NAME disable a particular Rule named 'NAME'
[CYGWIN_WINSOCK=no DEV_RANDOM=default EXPAT=defa]
[IRIXN32=yes IRIXNIS=no PARANOID=no ]
[SHARED_CHAIN=default SHARED_CORE=default SOCKS4]
[SOCKS5=no WANTHSREGEX=default ]
--add-module=FILE on-the-fly copy & activate a 3rd-party Module
--activate-module=FILE on-the-fly activate existing 3rd-party Module
--permute-module=N1:N2 on-the-fly permute module 'N1' with module 'N2'
--enable-module=NAME enable a particular Module named 'NAME'
--disable-module=NAME disable a particular Module named 'NAME'
[access=yes actions=yes alias=yes ]
[asis=yes auth=yes auth_anon=no ]
[auth_db=no auth_dbm=no auth_digest=no ]
[autoindex=yes cern_meta=no cgi=yes ]
[digest=no dir=yes env=yes ]
[example=no expires=no headers=no ]
[imap=yes include=yes info=no ]
[log_agent=no log_config=yes log_forensic=no]
[log_referer=no mime=yes mime_magic=no ]
[mmap_static=no negotiation=yes proxy=no ]
[rewrite=no setenvif=yes so=no ]
[speling=no status=yes unique_id=no ]
[userdir=yes usertrack=no vhost_alias=no ]
--enable-shared=NAME enable build of Module named 'NAME' as a DSO
--disable-shared=NAME disable build of Module named 'NAME' as a DSO
--with-perl=FILE path to the optional Perl interpreter
--with-port=PORT set the port number for httpd.conf
--without-support disable the build and installation of support tools
--without-confadjust disable the user/situation adjustments in config
--without-execstrip disable the stripping of executables on installation
--server-uid=UID set the user ID the web server should run as [nobody]
--server-gid=GID set the group ID the web server UID is a memeber of [#-
]
suEXEC options:
--enable-suexec enable the suEXEC feature
--suexec-caller=NAME set the suEXEC username of the allowed caller [www]
--suexec-docroot=DIR set the suEXEC root directory [PREFIX/share/htdocs]
--suexec-logfile=FILE set the suEXEC logfile [PREFIX/var/log/suexec_log]
--suexec-userdir=DIR set the suEXEC user subdirectory [public_html]
--suexec-uidmin=UID set the suEXEC minimal allowed UID [100]
--suexec-gidmin=GID set the suEXEC minimal allowed GID [100]
--suexec-safepath=PATH set the suEXEC safe PATH [/usr/local/bin:/usr/bin:/bin]
--suexec-umask=UMASK set the umask for the suEXEC'd script [server's umask]