@sherly

When running commands, be careful. Read what it says. Your first command itself failed. Then stop and inventigate. Don't continue with further commands if first one failed.

When running a group of commands, don't run all at once, run one at a time, read what computers says, if it was success or failure.

Code:
sherly@HOME:~/www/sherly.dev$ sudo apt-get install php5-crypt
[sudo] password for sherly: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php5-crypt
See, server can't find the package with name php5-crypt.

Actual name of the package is

Code:
php5-mcrypt
So run

Code:
sudo apt-get install php5-mcrypt
I am not fixing first post, that is error on my part. Lets keep that error, so others follow this post know what to do when an error happens or something did not work. Read what computer said and try to understand. No 6th sense needed here.