Installing Magento dependencies on ubuntu ec2