+ -
当前位置:首页 → 问答吧 → Apcahe+PHP+Xdebug安装问题

Apcahe+PHP+Xdebug安装问题

时间:2007-09-13

来源:互联网

我在Window下安装Xbebug出现如下错误

Installing Apache2.2 as an Service
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
Syntax error on line 326 of C:/xampp/apache/conf/httpd.conf:
AddType requires at least two arguments, a mime type followed by one or more fil
e extensions
Now we Start Apache2.2 :)
Apache2.2 服务正在启动 .
Apache2.2 服务无法启动。
发生服务特定错误: 1.

我在安装Xdebug时按照
http://my.donews.com/awell/2006/03/21/eclipsephpeclipsexdebugamp/
进行的,
把其中配置Xdebug部分转发至下面

二、安装xdebug。
1)下载PHP版本对应的xdebug,将其拷入PHP的extension目录。
2)修改php.ini,将extension_dir改成该extension目录。 并在php.ini的最后加入如下几行:
[Xdebug]
zend_extension_ts=php_xdebug-4.4.1-2.0.0beta5.dll
xdebug.profiler_enable=on
xdebug.trace_output_dir=”D:/web-server/xdebug”
xdebug.profiler_output_dir=”D:/web-server/xdebug”
请根据你自己的安装路径和版本修改。
3)重启Apache2。
4)查看phpinfo(),如果有xdebug字样就说明安装成功了。
5)注意:php似乎必须以cgi方式运行。
即Apache的http.conf中,以下面这种方式配置php:
# 以cgi方式运行php
ScriptAlias /php/ “d:/web-server/php/”
AddType application/x-httpd-php .php
Action application/x-httpd-php “/php/php.exe”

我进行到第5步就出现了上面的错误了,求解.

作者: jdonee   发布时间: 2007-09-13

Syntax error on line 326 of C:/xampp/apache/conf/httpd.conf:、
配置文件的326行看看,提示有问题。

作者: netseek   发布时间: 2007-09-13

谢谢,我重装了:D

作者: jdonee   发布时间: 2007-09-14

:) 好!能决问题就好,Windows很多是这样,重装一下服务,再仔细配置一下问题就解决了!

作者: netseek   发布时间: 2007-09-14

作者: RICHARD   发布时间: 2007-09-16