While I was trying to install Mcrypt PHP I got the following error sudo: unable to resolve host.
[email protected]:/home/webroot/my# sudo php5enmod mcrypt sudo: unable to resolve host scw-XXXX
I had to edit /etc/hosts and add the following entry to it:
127.0.0.1 scw-XXXX
Hooray!