all instructions for php 7.0
$ sudo nano /etc/apt/sources.list.d/tideways.list
deb http://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages debian main
$ wget -qO - https://s3-eu-west-1.amazonaws.com/qafoo-profiler/packages/EEB5E8F4.gpg | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install tideways-daemon tideways-php tideways-cli
$ sudo apt-get install mongodb php7.0-mongodb
$ php --ri mongodb
$ mongo
use xhprof
db.results.ensureIndex( { 'meta.SERVER.REQUEST_TIME' : -1 } )
db.results.ensureIndex( { 'profile.main().wt' : -1 } )
db.results.ensureIndex( { 'profile.main().mu' : -1 } )
db.results.ensureIndex( { 'profile.main().cpu' : -1 } )
db.results.ensureIndex( { 'meta.url' : 1 } )
exit
$ sudo mkdir -p /var/www/xhgui
$ sudo chown -R werkspot.www-data /var/www/xhgui
$ cd /var/www
$ git clone https://github.com/perftools/xhgui.git xhgui
$ cd xhgui
$ php install.php
$ sudo nano /etc/nginx/sites-available/xhgui
server {
listen 80;
server_name xhgui1.testing2.werkspot.com;
root /var/www/xhgui/webroot/;
index index.php;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
error_log /var/log/nginx/xhgui.error.log;
}
$ sudo ln -s /etc/nginx/sites-available/xhgui /etc/nginx/sites-enabled/xhgui
$ sudo service nginx restart