facebook twitter hatena line email

Mac/インストール/xhgui

提供: 初心者エンジニアの簡易メモ
2016年12月27日 (火) 18:42時点におけるAdmin (トーク | 投稿記録)による版 (ページの作成:「==xhguiインストール== $ cd /var/www/html $ git clone https://github.com/preinheimer/xhgui.git $ chmod 777 xhgui/cache $ git clone https://github.com/preinheime...」)

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)
移動: 案内検索

xhguiインストール

$ cd /var/www/html
$ git clone https://github.com/preinheimer/xhgui.git
$ chmod 777 xhgui/cache
$ git clone https://github.com/preinheimer/xhprof xhgui
$ cd xhgui
$ cp xhprof_lib/config.sample.php xhprof_lib/config.php 

xhguiのnginx設定

$ vi /usr/local/etc/nginx/servers/xhgui.conf
server {
  listen       80;
  server_name  xhgui.local;
  root /d/www/php/xhgui/xhprof_html;
  index  index.php index.html;
  location ~* \.(jpg|jpeg|gif|png|swf|css|js|inc|ico|pdf|flv|gz|woff|html|htm|txt|xml)$ {
      root /d/www/php/xhgui/xhprof_html;
      index   index.html;
      ssi     on;
      access_log off;
      break;
  }
  location / {
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    include        fastcgi_params;
  }
}

hosts設定

$ sudo vi /etc/hosts
127.0.0.1 xhgui.local

あとはここを参照

php/速度改善/XHGui [ショートカット]