windows07, 64BIT如何配置PHP

来源:互联网 发布:windows文件系统结构 编辑:程序博客网 时间:2024/05/22 11:59

第一步:安装WAMP

      1,安装VCREDIST_X64 

      2, 安装VCREDIST_X86

      3, 安装WAMP 

      4.修改APAche的端口: 安装完WAMP,单击小图标。会出现APACHE。点击找到http.conf.找到Listen   修改后面的数字。保存

第二部:配置PHP

   1,  将下面代码考到php.ini文件里面

; XDEBUG Extension


zend_extension = "e:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"


;[Xdebug]
;idekey同netbeans中"工具"->"选项"->"php"->"调试"->"会话ID"一致
xdebug.idekey=netbeans-xdebug


;开启自动跟踪
xdebug.auto_trace = On
;开启异常跟踪
xdebug.show_exception_trace = On
;开启远程调试自动启动
xdebug.remote_autostart = On
;开启远程调试
xdebug.remote_enable = On


;收集变量
xdebug.collect_vars = On
;收集返回值
;xdebug.collect_return = On
收集参数
xdebug.collect_params = On
;事先建好E:\wamp\bin\xdebug_output文件夹
xdebug.trace_output_dir="E:\wamp\bin\xdebug_output"     
xdebug.profiler_enable=On
xdebug.profiler_output_dir="E:\wamp\bin\xdebug_output"

 
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_handler=dbgp

红色的修改路径为DEBUG的结果输出区,在电脑上建立相应的文件夹

绿色的为端口


第三步:安装JDK,JRE  MEtBeans

第四部:修改APACHE的重定向  http.conf

(解决1:
1. 打开 httpd.conf
2.找到 mod_rewrite.so 行,
即:#LoadModule rewrite_module modules/mod_rewrite.so
将前面的注释打开(即删掉前面的'#'符号)。
3.关闭httpd.conf,重启apache服务器即可。 )

               修改PHP的标志 php.ini文档中  short_open_tag = On

           PHP解释器的  找打斌的安装文件/bin/php/php.5.4.2/php.exe    配置


第五部使用

   将项目放到WAMP.www文件下。


OK





    

0 0