热门标签 | 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


怎么弄好的,给说一下

推荐阅读
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • This guide provides a comprehensive step-by-step approach to successfully installing the MongoDB PHP driver on XAMPP for macOS, ensuring a smooth and efficient setup process. ... [详细]
  • 本文详细介绍了 Dockerfile 的编写方法及其在网络配置中的应用,涵盖基础指令、镜像构建与发布流程,并深入探讨了 Docker 的默认网络、容器互联及自定义网络的实现。 ... [详细]
  • 本文介绍了一款用于自动化部署 Linux 服务的 Bash 脚本。该脚本不仅涵盖了基本的文件复制和目录创建,还处理了系统服务的配置和启动,确保在多种 Linux 发行版上都能顺利运行。 ... [详细]
  • 在哈佛大学商学院举行的Cyberposium大会上,专家们深入探讨了开源软件的崛起及其对企业市场的影响。会议指出,开源软件不仅为企业提供了新的增长机会,还促进了软件质量的提升和创新。 ... [详细]
  • 本文深入探讨了Linux系统中网卡绑定(bonding)的七种工作模式。网卡绑定技术通过将多个物理网卡组合成一个逻辑网卡,实现网络冗余、带宽聚合和负载均衡,在生产环境中广泛应用。文章详细介绍了每种模式的特点、适用场景及配置方法。 ... [详细]
  • 使用Vultr云服务器和Namesilo域名搭建个人网站
    本文详细介绍了如何通过Vultr云服务器和Namesilo域名搭建一个功能齐全的个人网站,包括购买、配置服务器以及绑定域名的具体步骤。文章还提供了详细的命令行操作指南,帮助读者顺利完成建站过程。 ... [详细]
  • MySQL 数据库迁移指南:从本地到远程及磁盘间迁移
    本文详细介绍了如何在不同场景下进行 MySQL 数据库的迁移,包括从一个硬盘迁移到另一个硬盘、从一台计算机迁移到另一台计算机,以及解决迁移过程中可能遇到的问题。 ... [详细]
  • 2023 ARM嵌入式系统全国技术巡讲旨在分享ARM公司在半导体知识产权(IP)领域的最新进展。作为全球领先的IP提供商,ARM在嵌入式处理器市场占据主导地位,其产品广泛应用于90%以上的嵌入式设备中。此次巡讲将邀请来自ARM、飞思卡尔以及华清远见教育集团的行业专家,共同探讨当前嵌入式系统的前沿技术和应用。 ... [详细]
  • 优化ListView性能
    本文深入探讨了如何通过多种技术手段优化ListView的性能,包括视图复用、ViewHolder模式、分批加载数据、图片优化及内存管理等。这些方法能够显著提升应用的响应速度和用户体验。 ... [详细]
  • 本文详细介绍了如何使用PHP检测AJAX请求,通过分析预定义服务器变量来判断请求是否来自XMLHttpRequest。此方法简单实用,适用于各种Web开发场景。 ... [详细]
  • 解决PHP与MySQL连接时出现500错误的方法
    本文详细探讨了当使用PHP连接MySQL数据库时遇到500内部服务器错误的多种解决方案,提供了详尽的操作步骤和专业建议。无论是初学者还是有经验的开发者,都能从中受益。 ... [详细]
  • 本文详细介绍了Akka中的BackoffSupervisor机制,探讨其在处理持久化失败和Actor重启时的应用。通过具体示例,展示了如何配置和使用BackoffSupervisor以实现更细粒度的异常处理。 ... [详细]
  • 使用Python在SAE上开发新浪微博应用的初步探索
    最近重新审视了新浪云平台(SAE)提供的服务,发现其已支持Python开发。本文将详细介绍如何利用Django框架构建一个简单的新浪微博应用,并分享开发过程中的关键步骤。 ... [详细]
  • 本文介绍了在Windows Server 2003环境下,使用XAMPP Lite 1.7.1和DotProject 2.1.3时遇到的日历和甘特图中文乱码问题的解决方案。通过修改相关文件和配置,可以有效解决这些问题。 ... [详细]
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社区 版权所有