Try using:
sudo apt-get install php-gettext
sudo phpenmod mcrypt
sudo phpenmod mbstring
sudo service apache2 restart