其实已经做PHP超过2年了,但是今天特别有感触,所以把过程写在这里

环境是win7+apache2.2+php5.3,因为某种原因,必须使用这个版本.

然后就死活配置不出来.apache日志如下:

[Fri Dec 23 00:23:12 2016] [notice] Parent: Received restart signal -- Restarting the server.
Failed loading php_xdebug-2.2.7-5.3-vc9.dll
8: Exit event signaled. Child process is ending.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:12 2016] [notice] Digest: generating secret for digest authentication ...
[Fri Dec 23 00:23:12 2016] [notice] Digest: done
[Fri Dec 23 00:23:13 2016] [notice] Child 8608: Released the start mutex
[Fri Dec 23 00:23:14 2016] [notice] Apache/2.2.22 (Win32) DAV/2 mod_ssl/2.2.22 OpenSSL/0.9.8t PHP/5.3.29 configured -- resuming normal operations
[Fri Dec 23 00:23:14 2016] [notice] Server built: Jan 28 2012 11:16:39
[Fri Dec 23 00:23:14 2016] [notice] Parent: Created child process 14436
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:14 2016] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Dec 23 00:23:14 2016] [notice] Child 8608: All worker threads have exited.
[Fri Dec 23 00:23:14 2016] [notice] Child 8608: Child process is exiting
Failed loading php_xdebug-2.2.7-5.3-vc9.dll
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.100 for ServerName
[Fri Dec 23 00:23:15 2016] [notice] Digest: generating secret for digest authentication ...
[Fri Dec 23 00:23:15 2016] [notice] Digest: done
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Child process is running
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Acquired the start mutex.
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Starting 64 worker threads.
[Fri Dec 23 00:23:16 2016] [notice] Child 14436: Starting thread to listen on port 80.

然后经过网上好一顿查,大概花了三个小时,终于找到一个工具

https://xdebug.org/wizard.php

这工具只要把phpinfo()打印出来的东西,复制进去,就能告诉你为什么xdebug加载不了。

得到的回复我没有保存下来,但我通过这个知道,我的apache是vc9编译的,我选的是thread(也就是线程安全),然后虽然我是64位系统,但我的apache是32位的。

然后我就去xdebug官网下载了适合的版本。终于xdebug出现了。

最后。这地方我不知道网上为什么大部分教程这个地方都是文件名而不是路径,我的没有路径是行不通的。

zend_extension=C:\Develop\php53\ext\php_xdebug-2.2.7-5.3-vc9.dll
xdebug.profiler_enable=on
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = On
xdebug.collect_vars = On
xdebug.remote_handler = dbgp  
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM

感触

1:重点是开源项目一定要读文档,无论多大年纪,只要想做编程,就要好好学英语!

2:使用软件,如果出问题,一定要查日志,切记切记!

3:成熟软件没有解决不了的问题,一定要耐心,切记切记!

PHP配置xdebug的更多相关文章

  1. 【总结1】PhpStorm配置XDebug(远程)调试PHP

    配置PhpStorm调试PHP 第一步:配置 XDebug 下载安装XDebug到本地环境,打开php.ini,参考配置如下: [XDebug] zend_extension = "D:\P ...

  2. Zend studio 10.6 配置XDEBUG

    1. 查看PHP版本,下载XDebug     然后去网站http://xdebug.org/download.php下载相应的XDEBUG, 把下载好的文件放到相应的PHP下的EXT目录下,替换之前 ...

  3. ZendStudio调试配置(XDebug)

    服务器配置:WAMP Sever 3.0.0 调试器环境:Zend Studio 12.0 Build ID: 12.0.0.v20141117-20141115-2331-278 License:  ...

  4. 使用zend studio配置Xdebug调试PHP教程

    这里看过上面的文章后写一下自己的想法. 最近安装了zend studio 10.5,下载了破解文件.开始是下载了10.0的版本,但是注册码不正确.所以只能安装最新的10.5了. 接下来进行PHP代码调 ...

  5. PHPStorm配置Xdebug官方文档

    1 配置Xdebug 下载Xdebug 下载与您的PHP版本兼容的Xdebug扩展,并将其保存在该php/文件夹中. php/文件夹 的位置是在安装PHP引擎期间定义的. 如果您使用的是AMP软件包, ...

  6. 安装配置Xdebug模块详解

    1.XDebug安装配置 (1)下载XDebug下载地址:http://www.xdebug.org/必须下载跟机器上安装的php匹配的版本才行.具体下载方法如下:将phpinfo网页的源代码拷贝到h ...

  7. PHPStorm配置xdebug(phpStudy/wamp)

    一.下载并配置XDebug wamp环境: 1.获取xdebug

  8. Mac环境下PHPstorm配置xdebug开发调试web程序

    一.安装PHP的xdebug扩展 安装xdebug(技巧,为了找到适配的版本,让xdebug网站根据phpinfo()函数输出分析找到对应的方法及安装步骤:如果安装了多个PHP版本的话,尽量用phpi ...

  9. phpstorm调试配置 Xdebug

    这已经楼主第二次因为phpstorm的调试配置折腾了几个小时,这次一定要记下来!!! 以Xdebug chrome浏览器为例 一:安装 JetBrains IDE Support 二:安装 Xdebu ...

  10. 在windows10环境下给PHPStorm配置xdebug断点调试功能

    笔者的开发环境: wampserver2.5系统环境包 操作系统:windows10 64位专业版. php版本:php5.512 Apache版本:2.49 好了下面介绍,phpstorm配置xde ...

随机推荐

  1. python连接postgresql数据库

    python可以通过第三方模块连接postgresql. 比较有名的有psycopg2  和python3-postgresql (一)psycopg2 ubuntu下安装 sudo apt-get ...

  2. 【iOS开发】collectionView 瀑布流实现

    一.效果展示 二.思路分析 1> 布局的基本流程 当设置好collectionView的布局方式之后(UICollectionViewFlowLayout),当系统开始布局的时候,会调用 pre ...

  3. mongodb操作记录

    [User]1.db.addUser("name","pwd","true/false")2.db.auth("name" ...

  4. ownCloud Virtual Machines(bitnami.com)

    ownCloud Virtual Machines(bitnami.com)https://bitnami.com/stack/owncloud/virtual-machine

  5. Android 匿名共享内存Java接口分析

    在Android 匿名共享内存驱动源码分析中介绍了匿名共享内存的驱动实现过程,本文在Android匿名共享内存驱动基础上,介绍Android匿名共享内存对外Android系统的匿名共享内存子系统的主体 ...

  6. First Missing Positive 解答

    Question Given an unsorted integer array, find the first missing positive integer. For example,Given ...

  7. python定时器爬取豆瓣音乐Top榜歌名

    python定时器爬取豆瓣音乐Top榜歌名 作者:vpoet mail:vpoet_sir@163.com 注:这些小demo都是前段时间为了学python写的,现在贴出来纯粹是为了和大家分享一下 # ...

  8. 对中级Linux 用户非常有用的20 个命令

    也许你已经发现第一篇文章非常的有用,这篇文章是继对初级Linux用户非常有用的20个命令的一个延伸. 第一篇文章的目的是为新手准备的而这篇文章则是为了Linux的中高级用户.在这里你将学会如何进行自定 ...

  9. QUARTZ CRON

    本文来自:http://www.blogjava.net/crazycy/archive/2013/06/06/400287.html 每次使用Quartz Cron的时候都要去查manual doc ...

  10. RMAN传输表空间迁移数据

    实验环境: 源数据库:oracle 10g(Release 10.2.0.1.0) 目标数据库:oracle 10g(Release 10.2.0.1.0) 待传输的表空间:TEST 1.在tes ...