hacklab 发表于 2015-11-14 08:51:50

Apache 2.2.25 + PHP 5.3.10 + MySQL 5.5 + Zend Studio v10.6

安装Zend Studio v10.6
下载地址和破解教程 http://ttrar.com/html/Zend-Studio.html让Apache 2.2.25支持PHP5.3.10
  1、下载Apach 2.2.25 http://mirrors.hust.edu.cn/apache//httpd/binaries/win32/httpd-2.0.65-win32-x86-openssl-0.9.8y.msi 并安装
  2、下载PHP5.3.10 http://windows.php.net/downloads/releases/archives/php-5.3.10-Win32-VC9-x86.zip
  解压PHP 5.3.10到C:/php-5.3.10-Win32-VC9-x86
  3、在httpd.conf中加入
LoadModule php5_module "C:/php-5.3.10-Win32-VC9-x86/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
PHPIniDir "C:/php-5.3.10-Win32-VC9-x86"
  复制C:/php-5.3.10-Win32-VC9-x86/php.ini-development为php.ini并编辑:
  extension_dir = "C:/php-5.3.10-Win32-VC9-x86/ext"
date.timezone = Asia/Shanghai
  然后打开下列;注释:
extension=php_bz2.dll
extension=php_gd2.dll
extension=php_mysql.dll
  
配置xdebug
  
  1、下载xdebug-2.2.5-5.3 http://xdebug.org/files/php_xdebug-2.2.5-5.3-vc9.dll
  复制php_xdebug-2.2.5-5.3-vc9.dll到C:/php-5.3.10-Win32-VC9-x86/ext目录下
  新建目录(或其他位置):
C:/php-5.3.10-Win32-VC9-x86/xdebug/trace
C:/php-5.3.10-Win32-VC9-x86/xdebug/profiler

  2、编辑php.ini,在文件底部加入:(xdebug详细参数说明: http://xdebug.org/docs/all_settings)
  
zend_extension="C:/php-5.3.10-Win32-VC9-x86/ext/php_xdebug-2.2.5-5.3-vc9.dll"
xdebug.auto_trace=On
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.trace_output_dir="C:/php-5.3.10-Win32-VC9-x86/xdebug/trace"
xdebug.profiler_enable="true"
xdebug.profiler_output_dir="C:/php-5.3.10-Win32-VC9-x86/xdebug/profiler"
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_name ="cachegrind.out.%t-%s"
xdebug.remote_enable=1
xdebug.remote_autostart=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=19000
xdebug.remote_handler=dbgp

  3、重新启动Apache。通过phpinfo();可看到有关xdebug的配置项说明配置成功
  
配置Zend Studio使其可进行调试
1、在Window->Preference->PHP->Debug中配置右边PHP Debugger 配置为XDebug, 注意因为刚才我们在php.ini中设置了它的Port为19000, 这里也要更改为一致19000。
2、在Local PHP Project中右键单击任意.php源文件,在上下文菜单中选择Debug As->PHP Web Application。  
让Apache PHP支持MySQL等:
  复制C:/php-5.2.5-Win32/ext/php_bz2.dll,php_gd2.dll,php_mysql.dll到Apache2.2/bin目录下,重新启动Apache即可
         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: Apache 2.2.25 + PHP 5.3.10 + MySQL 5.5 + Zend Studio v10.6