performance

Drupal Profiling with XHProf on Ubuntu 11.10 + Memcached and Varnish

  1. Install memcached, varnish, and xhprof

    sudo apt-get install memcached
    sudo apt-get install php5-memcached
    sudo apt-get install varnish
    sudo pecl install php-xhprof

  2. Install xhprof front-end

    cd /var/www
    git clone https://github.com/facebook/xhprof.git

  3. Configure Apache and Varnish ports

    sudo vim /etc/apache2/ports.conf ; // Change 80 to 8080
    sudo vim /etc/apache2/sites-available/default // Change 80 to 8080
    sudo vim /etc/default/varnish // Change 6081 to 80

  4. [Re]start services

Syndicate content