2015年11月11日 星期三

一些xampp設定

  • xdebug
在php.ini的最下方加入下列設定
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll" ;引入xampp內建的xdebug dll檔
;xdebug.profiler_append=1;以append的方式寫入log,看個人
xdebug.profiler_enable=1;開啟xdebug
xdebug.profiler_output_dir="C:\xampp\xdebug";profiler log dir
xdebug.profiler_output_name="xdebug.out.%t-%s";xdebug file name
xdebug.remote_enable=1;must use when debuging web
xdebug.remote_handler="dbgp";debuging portocol
xdebug.remote_host="127.0.0.1";using host(depending on yout hostname)
xdebug.trace_output_dir="C:\xampp\xdebug";trace log dir
xdebug.remote_port=9000;using port,9000 is default
xdebug.remote_log='/remote/log/path' ;save all logs in it
xdebug.idekey="sublime.xdebug";passing ide key to dbgp
更詳細的參數參考官方文件
  • vhosts
修改"C:\xampp\apache\conf\extra\httpd-vhosts.conf" //這要看httpd.conf中的#Virtual hosts的路徑,範例為我的本機設定
NameVirtualHost *:50000 ;指定使用port

DocumentRoot "C:/xampp/htdocs/to/project/top/directory"
ServerName laravel.dev ;需寫入/etc/hosts

其中 c:/xampp/htdocs 是xampp的預設document root,可變更

沒有留言:

張貼留言