该文档介绍了Apache,PHP,PhpStorm,Xdebug的安装与配置,文档示例使用的操作系统为Windows。
点击下载。如无特殊要求请下载TS版本。TS版本中包含了
php5apache2_4.DLL
将安装目录下的php.ini-XXX的文件重命名为php.ini。检查扩展模块文件夹的配置
extension_dir=ext
其它具体配置请查阅相关文档。
点击下载。依据php版本下载相应的版本。完成下载之后放到指定位置,如:{php安装目录}/ext,在php.ini中配置开启Xdebug。
[xdebug] zend_extension="D:\php-5.6.38-Win32-VC11-x64\ext\php_xdebug-2.2.5-5.6-vc11-x86_64.dll" xdebug.auto_trace=on xdebug.collect_params=on xdebug.collect_return=on xdebug.trace_output_dir="E:\AppServ\Xdebug" xdebug.profiler_enable=on xdebug.profiler_output_dir="E:\AppServ\Xdebug" xdebug.remote_enable = on xdebug.remote_handler = dbgp xdebug.remote_host= localhost xdebug.remote_port = 9000 xdebug.idekey = PHPSTORM
下载解压到指定路径。可以选择将httpd安装为服务,这样可以方便的通过bin下的monitor来监控服务。
bin/httpd.exe -k install -n "apache24"
编辑conf/httpd.conf文件,开启对php的支持
LoadModule php5_module "D:\php-5.6.38-Win32-VC11-x64\php5apache2_4.dll" #请填写正确的位置 AddType application/x-httpd-php .php .html .htm PHPIniDir "php安装目录,注意是目录"
Apache其它配置请参考相关文档。
可从官网下载,也可下载破解版。打开storm,进入设置界面ctrl+alt+s参考以下配置。