请教一个apache配置php后启动不了的问题

石头子 2004-03-31 09:33:36
apache安装后可以正常启动,但在
加上以下
LoadModule php4_module C:/php/sapi/php4apache2.dll"
后,就启动不了了
错误:the requested operation has failed
---------------------------------------------------------------------
#---> This file was generated in ApacheConf (2004-3-31) <---#
#---> ApacheConf is a GUI for configuring Apache web servers <---#
#---> www.apache-gui.com <---#

#---> Global parameters <---#

ServerRoot "D:/www/Apache Group/Apache2"
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Listen 80
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
# 1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
# 2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
# 3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "D:/www/Apache Group/Apache2" will be interpreted by the
# server as "D:/www/Apache Group/Apache2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#
# 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.
#
#
# 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/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#
# 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 "logs/apache_runtime_status"
#
# PidFile: The file in which the server should record its process
# identification number when it starts.
PidFile logs/httpd.pid
#
# Timeout: The number of seconds before receives and sends time out.
#
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
#
# 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.
#
#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
#
...全文
109 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
chinaworker 2004-04-01
  • 打赏
  • 举报
回复
将php下面的php4ts.dll文件拷贝到

系统盘:\winnt\system32
系统盘:\windows\system32
ninjakoei 2004-04-01
  • 打赏
  • 举报
回复
LoadModule php4_module C:/php/sapi/php4apache.dll
试试
feel8 2004-04-01
  • 打赏
  • 举报
回复
# Example:
# LoadModule foo_module "modules/mod_foo.so"
LoadModule php4_module C:/php/sapi/php4apache2.dll"


他的httpd.conf中多了半边分号
ashchen 2004-04-01
  • 打赏
  • 举报
回复
php4ts.dll拷贝到apache的bin目录下也行,php.ini拷贝到安装apache的目录
mistjin 2004-04-01
  • 打赏
  • 举报
回复
php下面的php4ts.dll文件拷贝到系统目录下
我以前也遇到同样的问题
santouka 2004-04-01
  • 打赏
  • 举报
回复
ninjakoei(钟钟ninja)
===============================
你的方法果然好用。但这样改行吗?

feel8 2004-03-31
  • 打赏
  • 举报
回复
LoadModule php4_module C:/php/sapi/php4apache2.dll

多了一个分号
demong 2004-03-31
  • 打赏
  • 举报
回复
本机测试什么提示?
石头子 2004-03-31
  • 打赏
  • 举报
回复
ScriptAlias /cgi-bin/ "D:/www/Apache Group/Apache2/cgi-bin/"

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis
石头子 2004-03-31
  • 打赏
  • 举报
回复
# Please see the documentation at
# URL:http://httpd.apache.org/docs-2.0/vhosts/
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
NameVirtualHost localhost: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 php4_module C:/php/sapi/php4apache2.dll"

LoadModule access_module "modules/mod_access.so"
LoadModule actions_module "modules/mod_actions.so"
LoadModule alias_module "modules/mod_alias.so"
LoadModule asis_module "modules/mod_asis.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 autoindex_module "modules/mod_autoindex.so"
# LoadModule cern_meta_module "modules/mod_cern_meta.so"
LoadModule cgi_module "modules/mod_cgi.so"
# LoadModule dav_module "modules/mod_dav.so"
# LoadModule dav_fs_module "modules/mod_dav_fs.so"
LoadModule dir_module "modules/mod_dir.so"
LoadModule env_module "modules/mod_env.so"
# LoadModule expires_module "modules/mod_expires.so"
# LoadModule file_cache_module "modules/mod_file_cache.so"
# LoadModule headers_module "modules/mod_headers.so"
LoadModule imap_module "modules/mod_imap.so"
LoadModule include_module "modules/mod_include.so"
# LoadModule info_module "modules/mod_info.so"
LoadModule isapi_module "modules/mod_isapi.so"
LoadModule log_config_module "modules/mod_log_config.so"
LoadModule mime_module "modules/mod_mime.so"
# LoadModule mime_magic_module "modules/mod_mime_magic.so"
# LoadModule proxy_module "modules/mod_proxy.so"
# LoadModule proxy_connect_module "modules/mod_proxy_connect.so"
# LoadModule proxy_http_module "modules/mod_proxy_http.so"
# LoadModule proxy_ftp_module "modules/mod_proxy_ftp.so"
LoadModule negotiation_module "modules/mod_negotiation.so"
# LoadModule rewrite_module "modules/mod_rewrite.so"
LoadModule setenvif_module "modules/mod_setenvif.so"
# LoadModule speling_module "modules/mod_speling.so"
# LoadModule status_module "modules/mod_status.so"
# LoadModule unique_id_module "modules/mod_unique_id.so"
LoadModule userdir_module "modules/mod_userdir.so"
# LoadModule usertrack_module "modules/mod_usertrack.so"
# LoadModule vhost_alias_module "modules/mod_vhost_alias.so"
# LoadModule ssl_module "modules/mod_ssl.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.
# ExtendedStatus On
石头子 2004-03-31
  • 打赏
  • 举报
回复
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of 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
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
# You must correct the path for the root to match your system's configured
# user directory location, e.g. "C:/WinNT/profiles/*/My Documents/My Website"
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of: Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
ServerTokens Full
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
ForceLanguagePriority Prefer Fallback
# Allow from server status reports generated by mod_status,
# Allow from remote server configuration reports, with the URL of
# Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
logo 设计不会,就这样先凑合了写道 Fuseblog预备开发带在线SHOP功能的个人博客系统.仿照Appfuse 提供一个完全自动化的ant构建脚本.在线SHOP的数据库建模图例已经 在博客中贴出.感兴趣的和我一起搭建,嘻嘻 文档博客地址: http://forum.sinomagazine.com 开发环境: Jcreator-4.5 JDK-1.5 Ant-1.6.1 MYSQL-5 Tomcat-5.5 Spring-2.5.6 Ibatis-2.3.4 问题事项: 1.在windows系统中,命令行中执行ant命令时,当指定的 构建脚本文件中包含中文字符,而构建脚本文件的编码是UTF-8时将会 Invalid byte 1 of 1-byte UTF-8 sequence. 的错误.这个问题尚未 知解决,故先采用GBK的编码. 2.在Jcreator中创建的项目,不支持UTF-8编码,缺省GBK. 以下先列出初步的的ant构建文件的代码: build.xml 一个小时),构建的频率也更高,这样做的目的就是为了快速反馈,使得BUG越早被发现,并能以邮件或者消息(甚至短信)的形式快速反馈给开发人员,从而快速解决问题,并保证构建成功。 二、工具篇: 持续集成 ... by lixw 2008-09-09 回复 (3) 网络相册开发(6)——ant 自动 ... 在工程目录下创建libs/hibernate/ ,放入 hibernate-tools-3.2.0.ga.jar jtidy-4aug2000r7-dev.jar build.properties project.name=sw project.version=1.0 basedir=. build.dir =${basedir}/build web.dir = ${basedir}/WebR ... by vyyv 2009-03-12 回复 (1) ant配置文件实例详解 build.xml 代码 xml version="1.0" encoding="UTF-8"?> 问题。 Antenna介绍 Ant ... by pandonix 2007-08-28 回复 (9) 用Ant 来编译打包您的Anroid应用 ... 通过 activityCreator.py --out myproject your.package.name.ActivityName 命令可以生成一个project ,生成project下面有个bulid.xml 文件,那个东西就可以帮你打包生成了。 来看下ant是怎么做的。 一个来自于埃及的java web ... 怎么又冒出一个web框架? 看看现存的Java web应用程序框架,无一例外的要求花费大量的时间与精力后才可投入生产。对于大多数开发人员来说想要的东西很简单:友好,易于学习并且还具有生产力。因此我们开发了JSPX。 JSPX的主要目标就是打造成为一个“友好的开发者”框架。因为JSPX只基于标准的HTML标签和简单的Java POJO: 1. JSP ... by kyo100900 2009-01-07 回复 (42) NetBeans Struts2 插件更新 NetBeans Struts 2 插件(http://nbstruts2support.dev.java.net)很长时间没有更新了,我对原插件进行了少量修改,并在 NetBeans 6.7 上测试通过,其中修改包括:1.包含了最新的 Struts 2.1.6 库文件。2.更新至最新的 web framework API。3.重新设计了配置面板,支持更加灵活的最初配置。4.少量针对的 ... by gml520 2009-08-27 回复 (4) 新版本的PrettyTools发布,支持 ... PrettyFaces: EL API访问PrettyContext 支持JSF 1.1 增强了错误页面和servlet重定向 PrettyFaces是一个JSF1.2和JSF2.0的扩展,用来创建便于书签收藏、漂亮的网址。 PrettyFaces优雅的解决了这个问题,包括诸如功能:网页装载行动,无缝的跟faces的导航整合,动态视图的ID分配和管理参数分析,无需配置,兼容其他JSF框架。P ... by zly06 2009-09-09 回复 (0) 相关博客 ant模板 < ? xml version = "1.0" ?> < project name= "tax-calculator" default= "package" > < property name= "src.dir" location= "src" / > ... by article2008 2008-07-30 回复 (0) 代码备份build.xml

21,887

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧