php eclipse xdebug 开发环境搭建
1. 下载jdk
2. 下载 eclipse-php-helios-SR2-win32-x86_64.zip
3. 下载php5.3
4. 下载xdebug
5. 下载apache2
6. 配置php.ini
加入下面一段
;载入Xdebug zend_extension="D:/php-5.3.16-Win32-VC9-x86/ext/php_xdebug-2.2.1-5.3-vc9.dll" ;xdebug配置 [Xdebug] ;开启自动跟踪 xdebug.auto_trace = On ;开启异常跟踪 xdebug.show_exception_trace = On ;开启远程调试自动启动 xdebug.remote_autostart = On ;开启远程调试 xdebug.remote_enable = true ;收集变量 xdebug.collect_vars = On ;收集返回值 xdebug.collect_return = On ;收集参数 xdebug.collect_params = On
7 配置apache
LoadModule php5_module "D:/php-5.3.16-Win32-VC9-x86/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "D:/php-5.3.2-Win32-VC9-x86"
8 根目录改为工作空间或者添加虚拟目录
#DocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs" DocumentRoot "E:/workspace/php/demo"
或配置
#虚拟目录节点 <IfModule dir_module> #设置欢迎界面 DirectoryIndex index.php index.html index.htm Alias /php "E:/workspace/php/demo" #"/php"是虚拟路径,"E:/workspace/php/demo" 是你项目存放的物理路径; <Directory "E:/workspace/php/demo"> #访问权限设置 Order allow,deny Allow from all </Directory> </IfModule>
至此。
相关推荐
chenhaimeimeng 2020-09-15
icysonyk 2020-09-15
MXstudying 2019-11-17
codeDig 2020-09-15
lemonzhangyan 2020-09-17
RemixGdc 2020-08-15
nicelife 2020-06-27
zhaowj00 2020-06-06
缘起宇轩阁 2020-04-22
xiaocainiao0 2020-04-22
nicelife 2020-03-26
poplpsure 2020-02-10
nicelife 2019-12-25
amberom 2019-12-05
ipromiser 2019-11-19
spinachcqb 2019-11-04
ROES 2011-05-05
很青的青蛙 2010-10-07
lff 2008-11-05