热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

XP安装apache加载PHP5

如果不加载PHP都没问题只要一加入LoadModulephp5_moduleC:phpphp5apache2.dllapache就启动不起来路径没问题apach
如果不加载PHP都没问题
只要一加入

LoadModule php5_module C:/php/php5apache2.dll

apache就启动不起来

路径没问题
apache 为2.0.59
php5ts.dll,libmysql.dll 也拷到system32
php_gd2.dll php_mysql.dll复制到system/system32

14 个解决方案

#1


补充:
Apache is running a threaded MPM, but your PHP
 Module is not compiled to be threadsafe.  You need to recompile PHP.
Pre-configuration failed

#2


把你...\Apache2.2\logs 下的error.log 下的提示贴出来看看
才好分析到底是哪儿的问题

我也是才装的,我的是
XP下  apache2.2.4 + 安装版php5.2.1 +mysql5.0.37

#3


到EASYPHP.CN下载个套件看看去.APACH2+PHP5+MYSQL5适合新手使用.不懂的问偶就行了

#4


[Fri Mar 30 09:12:25 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:12:25 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:12:25 2007] [notice] Parent: Created child process 5984
[Fri Mar 30 09:12:25 2007] [notice] Child 5984: Child process is running
[Fri Mar 30 09:12:25 2007] [notice] Child 5984: Acquired the start mutex.
[Fri Mar 30 09:12:25 2007] [notice] Child 5984: Starting 250 worker threads.
[Fri Mar 30 09:17:31 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:17:31 2007] [notice] Child 5984: Exit event signaled. Child process is ending.
[Fri Mar 30 09:17:31 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:17:31 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:17:31 2007] [notice] Parent: Created child process 516
[Fri Mar 30 09:17:31 2007] [notice] Child 516: Child process is running
[Fri Mar 30 09:17:32 2007] [notice] Child 516: Acquired the start mutex.
[Fri Mar 30 09:17:32 2007] [notice] Child 5984: Released the start mutex
[Fri Mar 30 09:17:32 2007] [notice] Child 516: Starting 250 worker threads.
[Fri Mar 30 09:17:33 2007] [notice] Child 5984: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:17:33 2007] [notice] Child 5984: All worker threads have exited.
[Fri Mar 30 09:17:33 2007] [notice] Child 5984: Child process is exiting
[Fri Mar 30 09:23:10 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:23:10 2007] [notice] Child 516: Exit event signaled. Child process is ending.
[Fri Mar 30 09:23:10 2007] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。  : winnt_accept: Asynchronous AcceptEx failed.
[Fri Mar 30 09:23:11 2007] [notice] Child 516: Released the start mutex
[Fri Mar 30 09:23:12 2007] [notice] Child 516: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:23:12 2007] [notice] Child 516: All worker threads have exited.
[Fri Mar 30 09:23:12 2007] [notice] Child 516: Child process is exiting
[Fri Mar 30 09:28:08 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:28:08 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:28:08 2007] [notice] Parent: Created child process 4384
[Fri Mar 30 09:28:08 2007] [notice] Child 4384: Child process is running
[Fri Mar 30 09:28:08 2007] [notice] Child 4384: Acquired the start mutex.
[Fri Mar 30 09:28:08 2007] [notice] Child 4384: Starting 250 worker threads.
[Fri Mar 30 09:30:17 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:30:17 2007] [notice] Child 4384: Exit event signaled. Child process is ending.
[Fri Mar 30 09:30:17 2007] [warn] (OS 995)由于线程退出或应用程序请求,已放弃 I/O 操作。  : winnt_accept: Asynchronous AcceptEx failed.
[Fri Mar 30 09:30:18 2007] [notice] Child 4384: Released the start mutex
[Fri Mar 30 09:30:19 2007] [notice] Child 4384: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:30:19 2007] [notice] Child 4384: All worker threads have exited.
[Fri Mar 30 09:30:19 2007] [notice] Child 4384: Child process is exiting
[Fri Mar 30 09:46:59 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:46:59 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:46:59 2007] [notice] Parent: Created child process 4184
[Fri Mar 30 09:46:59 2007] [notice] Child 4184: Child process is running
[Fri Mar 30 09:46:59 2007] [notice] Child 4184: Acquired the start mutex.
[Fri Mar 30 09:46:59 2007] [notice] Child 4184: Starting 250 worker threads.
[Fri Mar 30 09:47:03 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 09:47:03 2007] [notice] Child 4184: Exit event signaled. Child process is ending.
[Fri Mar 30 09:47:04 2007] [notice] Child 4184: Released the start mutex
[Fri Mar 30 09:47:05 2007] [notice] Child 4184: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:47:05 2007] [notice] Child 4184: All worker threads have exited.
[Fri Mar 30 09:47:05 2007] [notice] Child 4184: Child process is exiting
[Fri Mar 30 09:47:05 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 09:49:49 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:49:49 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:49:49 2007] [notice] Parent: Created child process 1816
[Fri Mar 30 09:49:49 2007] [notice] Child 1816: Child process is running
[Fri Mar 30 09:49:49 2007] [notice] Child 1816: Acquired the start mutex.
[Fri Mar 30 09:49:49 2007] [notice] Child 1816: Starting 250 worker threads.
[Fri Mar 30 09:50:44 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 09:50:44 2007] [notice] Child 1816: Exit event signaled. Child process is ending.
[Fri Mar 30 09:50:44 2007] [notice] Apache/2.0.59 (Win32) configured -- resuming normal operations
[Fri Mar 30 09:50:44 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 09:50:44 2007] [notice] Parent: Created child process 4744
[Fri Mar 30 09:50:44 2007] [notice] Child 4744: Child process is running
[Fri Mar 30 09:50:45 2007] [notice] Child 1816: Released the start mutex
[Fri Mar 30 09:50:45 2007] [notice] Child 4744: Acquired the start mutex.
[Fri Mar 30 09:50:45 2007] [notice] Child 4744: Starting 250 worker threads.
[Fri Mar 30 09:50:46 2007] [notice] Child 1816: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:50:46 2007] [notice] Child 1816: All worker threads have exited.
[Fri Mar 30 09:50:46 2007] [notice] Child 1816: Child process is exiting
[Fri Mar 30 09:50:47 2007] [error] [client 127.0.0.1] Directory index forbidden by rule: E:/network/Apache/
[Fri Mar 30 09:53:23 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 09:53:23 2007] [notice] Child 4744: Exit event signaled. Child process is ending.

#5


[Fri Mar 30 09:53:24 2007] [notice] Child 4744: Released the start mutex
[Fri Mar 30 09:53:25 2007] [notice] Child 4744: Waiting for 250 worker threads to exit.
[Fri Mar 30 09:53:25 2007] [notice] Child 4744: All worker threads have exited.
[Fri Mar 30 09:53:25 2007] [notice] Child 4744: Child process is exiting
[Fri Mar 30 09:53:25 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 10:26:51 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:26:51 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:26:51 2007] [notice] Parent: Created child process 180
[Fri Mar 30 10:26:51 2007] [notice] Child 180: Child process is running
[Fri Mar 30 10:26:51 2007] [notice] Child 180: Acquired the start mutex.
[Fri Mar 30 10:26:51 2007] [notice] Child 180: Starting 250 worker threads.
[Fri Mar 30 10:26:55 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 10:26:55 2007] [notice] Child 180: Exit event signaled. Child process is ending.
[Fri Mar 30 10:26:55 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:26:55 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:26:55 2007] [notice] Parent: Created child process 3976
[Fri Mar 30 10:26:55 2007] [notice] Child 3976: Child process is running
[Fri Mar 30 10:26:56 2007] [notice] Child 3976: Acquired the start mutex.
[Fri Mar 30 10:26:56 2007] [notice] Child 180: Released the start mutex
[Fri Mar 30 10:26:56 2007] [notice] Child 3976: Starting 250 worker threads.
[Fri Mar 30 10:26:57 2007] [notice] Child 180: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:26:57 2007] [notice] Child 180: All worker threads have exited.
[Fri Mar 30 10:26:57 2007] [notice] Child 180: Child process is exiting
[Fri Mar 30 10:27:08 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 10:27:08 2007] [notice] Child 3976: Exit event signaled. Child process is ending.
[Fri Mar 30 10:27:09 2007] [notice] Child 3976: Released the start mutex
[Fri Mar 30 10:27:10 2007] [notice] Child 3976: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:27:10 2007] [notice] Child 3976: All worker threads have exited.
[Fri Mar 30 10:27:10 2007] [notice] Child 3976: Child process is exiting
[Fri Mar 30 10:27:10 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 10:27:27 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:27:27 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:27:27 2007] [notice] Parent: Created child process 3700
[Fri Mar 30 10:27:27 2007] [notice] Child 3700: Child process is running
[Fri Mar 30 10:27:27 2007] [notice] Child 3700: Acquired the start mutex.
[Fri Mar 30 10:27:27 2007] [notice] Child 3700: Starting 250 worker threads.
[Fri Mar 30 10:30:06 2007] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Mar 30 10:30:06 2007] [notice] Child 3700: Exit event signaled. Child process is ending.
[Fri Mar 30 10:30:07 2007] [notice] Child 3700: Released the start mutex
[Fri Mar 30 10:30:08 2007] [notice] Child 3700: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:30:08 2007] [notice] Child 3700: All worker threads have exited.
[Fri Mar 30 10:30:08 2007] [notice] Child 3700: Child process is exiting
[Fri Mar 30 10:30:08 2007] [notice] Parent: Child process exited successfully.
[Fri Mar 30 10:30:10 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:30:10 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:30:10 2007] [notice] Parent: Created child process 5152
PHP Warning:  PHP Startup: Unable to load dynamic library './php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0
[Fri Mar 30 10:30:10 2007] [notice] Child 5152: Child process is running
[Fri Mar 30 10:30:10 2007] [notice] Child 5152: Acquired the start mutex.
[Fri Mar 30 10:30:10 2007] [notice] Child 5152: Starting 250 worker threads.
[Fri Mar 30 10:44:46 2007] [error] [client 127.0.0.1] script 'C:/Apache/Apache2/htdocs/info.php' not found or unable to stat
[Fri Mar 30 10:44:49 2007] [error] [client 127.0.0.1] script 'C:/Apache/Apache2/htdocs/info.php' not found or unable to stat
[Fri Mar 30 10:47:50 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Mar 30 10:47:50 2007] [notice] Child 5152: Exit event signaled. Child process is ending.
[Fri Mar 30 10:47:51 2007] [notice] Apache/2.0.59 (Win32) PHP/5.2.1 configured -- resuming normal operations
[Fri Mar 30 10:47:51 2007] [notice] Server built: Jul 27 2006 15:55:03
[Fri Mar 30 10:47:51 2007] [notice] Parent: Created child process 2328
[Fri Mar 30 10:47:51 2007] [notice] Child 5152: Released the start mutex
PHP Warning:  PHP Startup: Unable to load dynamic library './php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Child process is running
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Acquired the start mutex.
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Starting 250 worker threads.
[Fri Mar 30 10:47:52 2007] [notice] Child 5152: Waiting for 250 worker threads to exit.
[Fri Mar 30 10:47:52 2007] [notice] Child 5152: All worker threads have exited.
[Fri Mar 30 10:47:52 2007] [notice] Child 5152: Child process is exiting
[Fri Mar 30 10:47:54 2007] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in E:\\network\\Apache\\info.php on line 3
[Fri Mar 30 10:47:56 2007] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in E:\\network\\Apache\\info.php on line 3
[Fri Mar 30 10:47:57 2007] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function mysql_connect() in E:\\network\\Apache\\info.php on line 3

能告诉我你QQ吗
谢谢

#6


我配置的apache能够运行,php配置也可一。但是运行测试文件的时候,把全不得源文件显示出来了,,,,这是什么原因???

#7


解压到D:\USR目录.放在其它目录是不行的.

#8


看说明啊大哥. README怎么着也要读一下三

#9


Ajampie() 你的Apache里面有没有声明.php类型页面?

#10


....
[Fri Mar 30 10:47:51 2007] [notice] Child 5152: Released the start mutex
PHP Warning:  PHP Startup: Unable to load dynamic library './php_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0
[Fri Mar 30 10:47:52 2007] [notice] Child 2328: Child process is running
.....

警告看书是php启动错误,不能加载 ./php_mysql.dll

你看你的php支持mysql的设置是否正确?
在php.ini 中做些修改,具体怎么改看你的php版本了

#11


看出  杜绝错字 呵呵

#12


看看你的php版本,有没有更好的模板加载?
    完整的模板加载命令如下:
LoadModule php5_module "C:/PHP5/php5apache2_2.dll"   #php模板所在,在下用得是Apache2.2
AddType application/x-httpd-php .php                 #识别php文件
PHPIniDir "C:/PHP5"                                  # 配置 php安装路径

#13


小胡他爹的集成的弄好了,哈哈,感谢老胡

#14


怎么弄好的,给说一下

推荐阅读
  • http:my.oschina.netleejun2005blog136820刚看到群里又有同学在说HTTP协议下的Get请求参数长度是有大小限制的,最大不能超过XX ... [详细]
  • 本文介绍了Web学习历程记录中关于Tomcat的基本概念和配置。首先解释了Web静态Web资源和动态Web资源的概念,以及C/S架构和B/S架构的区别。然后介绍了常见的Web服务器,包括Weblogic、WebSphere和Tomcat。接着详细讲解了Tomcat的虚拟主机、web应用和虚拟路径映射的概念和配置过程。最后简要介绍了http协议的作用。本文内容详实,适合初学者了解Tomcat的基础知识。 ... [详细]
  • 本文介绍了通过ABAP开发往外网发邮件的需求,并提供了配置和代码整理的资料。其中包括了配置SAP邮件服务器的步骤和ABAP写发送邮件代码的过程。通过RZ10配置参数和icm/server_port_1的设定,可以实现向Sap User和外部邮件发送邮件的功能。希望对需要的开发人员有帮助。摘要长度:184字。 ... [详细]
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
  • 怎么在PHP项目中实现一个HTTP断点续传功能发布时间:2021-01-1916:26:06来源:亿速云阅读:96作者:Le ... [详细]
  • 本文介绍了C++中省略号类型和参数个数不确定函数参数的使用方法,并提供了一个范例。通过宏定义的方式,可以方便地处理不定参数的情况。文章中给出了具体的代码实现,并对代码进行了解释和说明。这对于需要处理不定参数的情况的程序员来说,是一个很有用的参考资料。 ... [详细]
  • 本文介绍了计算机网络的定义和通信流程,包括客户端编译文件、二进制转换、三层路由设备等。同时,还介绍了计算机网络中常用的关键词,如MAC地址和IP地址。 ... [详细]
  • 利用Visual Basic开发SAP接口程序初探的方法与原理
    本文介绍了利用Visual Basic开发SAP接口程序的方法与原理,以及SAP R/3系统的特点和二次开发平台ABAP的使用。通过程序接口自动读取SAP R/3的数据表或视图,在外部进行处理和利用水晶报表等工具生成符合中国人习惯的报表样式。具体介绍了RFC调用的原理和模型,并强调本文主要不讨论SAP R/3函数的开发,而是针对使用SAP的公司的非ABAP开发人员提供了初步的接口程序开发指导。 ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • Java在运行已编译完成的类时,是通过java虚拟机来装载和执行的,java虚拟机通过操作系统命令JAVA_HOMEbinjava–option来启 ... [详细]
  • Windows7 64位系统安装PLSQL Developer的步骤和注意事项
    本文介绍了在Windows7 64位系统上安装PLSQL Developer的步骤和注意事项。首先下载并安装PLSQL Developer,注意不要安装在默认目录下。然后下载Windows 32位的oracle instant client,并解压到指定路径。最后,按照自己的喜好对解压后的文件进行命名和压缩。 ... [详细]
  • 解决nginx启动报错epoll_wait() reported that client prematurely closed connection的方法
    本文介绍了解决nginx启动报错epoll_wait() reported that client prematurely closed connection的方法,包括检查location配置是否正确、pass_proxy是否需要加“/”等。同时,还介绍了修改nginx的error.log日志级别为debug,以便查看详细日志信息。 ... [详细]
  • 本文介绍了一种轻巧方便的工具——集算器,通过使用集算器可以将文本日志变成结构化数据,然后可以使用SQL式查询。集算器利用集算语言的优点,将日志内容结构化为数据表结构,SPL支持直接对结构化的文件进行SQL查询,不再需要安装配置第三方数据库软件。本文还详细介绍了具体的实施过程。 ... [详细]
  • 本文讨论了在VMWARE5.1的虚拟服务器Windows Server 2008R2上安装oracle 10g客户端时出现的问题,并提供了解决方法。错误日志显示了异常访问违例,通过分析日志中的问题帧,找到了解决问题的线索。文章详细介绍了解决方法,帮助读者顺利安装oracle 10g客户端。 ... [详细]
  • 本文分析了Wince程序内存和存储内存的分布及作用。Wince内存包括系统内存、对象存储和程序内存,其中系统内存占用了一部分SDRAM,而剩下的30M为程序内存和存储内存。对象存储是嵌入式wince操作系统中的一个新概念,常用于消费电子设备中。此外,文章还介绍了主电源和后备电池在操作系统中的作用。 ... [详细]
author-avatar
昆山莱盛劳务
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有