Mac/インストール/xhgui
提供: 初心者エンジニアの簡易メモ
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 [ショートカット]
