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


怎么弄好的,给说一下

推荐阅读
  • 如果不加载PHP都没问题只要一加入LoadModulephp5_moduleC:phpphp5apache2.dllapache就启动不起来路径没问题apach ... [详细]
  • 【Vue基础】监听属性watch
    Vue监听属性是watch,我们可以通过watch来响应数据的变化。代码示例: ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 本文讨论了在Windows 8上安装gvim中插件时出现的错误加载问题。作者将EasyMotion插件放在了正确的位置,但加载时却出现了错误。作者提供了下载链接和之前放置插件的位置,并列出了出现的错误信息。 ... [详细]
  • 本文介绍了[从头学数学]中第101节关于比例的相关问题的研究和修炼过程。主要内容包括[机器小伟]和[工程师阿伟]一起研究比例的相关问题,并给出了一个求比例的函数scale的实现。 ... [详细]
  • 本文讨论了在openwrt-17.01版本中,mt7628设备上初始化启动时eth0的mac地址总是随机生成的问题。每次随机生成的eth0的mac地址都会写到/sys/class/net/eth0/address目录下,而openwrt-17.01原版的SDK会根据随机生成的eth0的mac地址再生成eth0.1、eth0.2等,生成后的mac地址会保存在/etc/config/network下。 ... [详细]
  • 本文介绍了机器学习手册中关于日期和时区操作的重要性以及其在实际应用中的作用。文章以一个故事为背景,描述了学童们面对老先生的教导时的反应,以及上官如在这个过程中的表现。同时,文章也提到了顾慎为对上官如的恨意以及他们之间的矛盾源于早年的结局。最后,文章强调了日期和时区操作在机器学习中的重要性,并指出了其在实际应用中的作用和意义。 ... [详细]
  • 本文介绍了在RHEL 7中的系统日志管理和网络管理。系统日志管理包括rsyslog和systemd-journal两种日志服务,分别介绍了它们的特点、配置文件和日志查询方式。网络管理主要介绍了使用nmcli命令查看和配置网络接口的方法,包括查看网卡信息、添加、修改和删除配置文件等操作。 ... [详细]
  • NSD cisco高级路由与交换技术2014.8.12
    实验01:DHCP服务的应用实验目标:通过建立DHCP服务,给计算机自动分配地址实验环境:实验步骤:一、配置计算机pc8pc ... [详细]
  • 卸载 Navicat:正版 MySQL 官方客户端,真香!
    DataGrip是由JetBrains公司推出的数据库管理软件,DataGrip支持几乎所有主流的关系数据库产品,如DB2、Derby、H2、MySQL ... [详细]
  • sudoyum-yinstallcurl-develbzip2bzip2-devellibxml2libxml2-devellibjpeglibpngfreetypeli ... [详细]
  • 【PHP】PHP开发环境搭建——windows篇(apache2.2.22+php5.3.29+mysql5.7)
    一直有学习php的想法,也稍微弄过一点点php,以前是用xmpp或者wamp来实现这会让很多初学者盲目,不知道是啥。现在来搭建一遍开发环境,并且说明下每一个的用途。1、下载apache的h ... [详细]
  • 点击下载php5与mysql5从入门到精通php5与mysql5从入门到精通是一本PHP5与MySQL的入门书籍,本书由卫喆和陈争航 ... [详细]
  • 学习内容:https:www.kancloud.cntpshopthinkphp5233345完全开发手册:https:www.kancloud.cnmanualthi ... [详细]
  • 据说PHP5不建议和Apache的workerMPM搭配使用,但之前就是拿PHP5.2.6+Apache2.2.4workerMPM来跑服务,效果貌似挺好。后来重新编 ... [详细]
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社区 版权所有