php extensions

cURL

sudo apt-get install php5-curl

rewrite

sudo a2enmod
sudo gedit /etc/apache2/sites-available/default
sudo service apache2 restart
pecl download xhprof-0.9.2
tar -xvf xhprof-0.9.2.tgz
cd xhprof-0.9.2/extension
phpize
./configure
make
make install

php.ini

[xhprof]
extension=xhprof.so
xhprof.output_dir="/var/tmp/xhprof"