Fix fatal error: Python.h: No such file or directory

Do you have this error in your when trying to pip install certain packages? (In my case pycrypto)

fatal error: Python.h: No such file or directory

Fix it by installing Python development libraries.


sudo apt-get install python2.7-dev

Will probably also work for other versions of python (i.e. python2.X-dev)

Via Alex Sleat

Install Perl Image::Magick on Ubuntu

To install Perl Image::Magick on Ubuntu

apt-get install perlmagick



Get spawn-fcgi to work with nginx on ubuntu


This is what I used to setup a startup script for fastCGI to work with nginx. That allows me to run multiple wordpress blogs off my slicehost.

Once it is setup I can start/restart my FastCGI processes easily.

/etc/init.d/fastcgi start
/etc/init.d/fastcgi restart
/etc/init.d/fastcgi stop
Syndicate content