PHP开发环境搭建

21 篇文章 0 订阅
4 篇文章 0 订阅

//httpd.conf配置

#START module方式

# 对 PHP 5 用这两行:
#LoadModule php5_module "d:/php5.5/php5.dll"
#AddType application/x-httpd-php .php
# 配置 php.ini 的路径
#PHPIniDir "D:/php5.5"
#END module方式




#START cgi方式
ScriptAlias /php/ "d:/php5.3/"
AddType application/x-httpd-php .php
# 对 PHP 4 用这行
#Action application/x-httpd-php "/php/php.exe"
# 对 PHP 5 用这行
Action application/x-httpd-php "/php/php-cgi.exe"
#END cgi方式


#START fastcgi方式
#ScriptAlias /php/ "d:/php5.5/"
#Action application/x-httpd-php "/php/php-cgi.exe"
#SetEnv PHPRC "d:/php5.5/"
#AddType application/x-httpd-php .php
#LoadModule fastcgi_module modules/mod_fastcgi-2.4.2-AP20.dll
# 说明:此处的 -processes 3 表示启动三个 php-cgi.exe 进程,
# 关于 FastCgiServer 的详细参数请参考 FastCGI 文档。
#FastCgiServer "D:/php5.5/php-cgi.exe" -processes 3

#END cgi方式


<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    allow from all
</Directory>


//httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.localhost
    DocumentRoot "D:/apache2.2/htdocs"
    ServerName localhost
    ServerAlias localhost.com
    ErrorLog "logs/dummy-host.localhost-error.log"
    CustomLog "logs/dummy-host.localhost-access.log" common


    <Directory "D:/apache2.2/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks


    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All


    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all


</Directory>
</VirtualHost>




//php.ini配置

extension_dir = "./ext/"



//xdebug配置

;xdebug配置
;载入Xdebug
zend_extension=D:/php5.3/ext/php_xdebug-2.2.6-5.3-vc9-nts.dll
;zend_extension= /usr/lib/php5/20090626+lfs/xdebug.so (Linux)


;debug
;开启远程调试
xdebug.remote_enable=On
;允许连接的zend studio的IP地址
xdebug.remote_host="localhost"
;反向连接zend studio使用的端口
xdebug.remote_port=9000
;用于zend studio远程调试的应用层通信协议
xdebug.remote_handler="dbgp"
;开启远程调试自动启动
xdebug.remote_autostart = Off


;profiler
xdebug.profiler_enable=on
;xdebug 的数据文件目录
xdebug.trace_output_dir="d:/xdebug/"
xdebug.profiler_output_dir="d:/xdebug/"
xdebug.profiler_output_name = "cachegrind.out.%c"


;trace  trace中收集的函数参数
;开启自动跟踪
xdebug.auto_trace = On 
;开启异常跟踪
xdebug.show_exception_trace = On 
;收集变量, 收集参数
xdebug.collect_params = On 
xdebug.collect_vars = On 
xdebug.collect_params = '3'
;收集返回值
xdebug.collect_return = On 
;如果设得太小,函数中有递归调用自身次数太多时会报超过最大嵌套数错
xdebugbug.max_nesting_level = 10000 


;//trace文件格式为html
xdebug.trace_format=2
;//追加trace日志,0:覆盖日志
xdebug.trace_options=1







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值