PHPの開発環境を構築しようとしているのですが、DocumentRoot以外でもデバッグできますか?
DocuentRoot上ではxdebugでデバッグに成功したのですが、DocumentRoot以外でデバッグをやる方法がわかりません。
☆環境
OS:macOS High Sierra
Apache:2.4.27(OS付属のもの)
PHP:7.1.8(NTS/OS付属のもの)
XDebug:2.5.5(brew install php71-xdebugでインストール)
☆httpd.conf に追加したもの(変更はなし)
<Directory /Users/redhat98/php>
AllowOverride none
Require all granted
</Directory>
Alias /php /Users/redhat98/php
☆php.iniに追加したもの
[xdebug]
zend_extension = "/usr/local/opt/php71-xdebug/xdebug.so"
xdebug.coverage_enable=1
xdebug.default_enable=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="/tmp"
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
☆PHPのコード
<?php phpinfo();