欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

apache + php 配置笔记

程序员文章站 2022-06-07 21:11:39
...
主要就是两个地方:

一、httpd.conf

LoadModule php5_module "D:/app/php/php5apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "D:/app/php"
AddType application/x-httpd-php .php

二、php.ini

加载module

extension_dir = "D:/app/php/ext"

调试:

[Xdebug]
zend_extension="D:/app/php/ext/php_xdebug-2.3.2-5.6-vc11-x86_64.dll"
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