Question
Installing laravel on a ubuntu 14.04 droplet
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×sudo php5enmod mcrypt
sudo service apache2 restart
Thanks. I was having the same issue with a LAMP and Ubuntu 14.04 droplet. This solved it.
sudo apt-get install php5-mcrypt
I tried this and got a message—
The following packages have unmet dependencies:
php5-mcrypt : Depends: php5-common (= 5.4.4-14+deb7u14) but 5.4.6-1ubuntu1.8 is to be installed
E: Unable to correct problems, you have held broken packages.
I am new to a linux and am clueless about the issue.
composer create-project laravel/laravel /var/www/laravel/ 4.1
I was having the same issue in 14.04. I tried all of the symlinks and everything I could find. I finally got it to work by:
1) Removing the existing php5-mcrypt package:
sudo apt-get purge php5-mcrypt
2) Reinstalling the php5-mcrypt package:
sudo apt-get install php5-mcrypt
The reinstall put php5-mcrypt into mods-available where it should be.
4) Enable the mod:
sudo php5enmod mcrypt
5) Restart Apache
sudo service apache2 restart
Hi,
I’m getting same issue with ubuntu 14.04 and Lampp. I have php5-mcrypt installed but can’t enable it. When I run sudo php5enmod mcrypt its give me this error WARNING: Module mcrypt ini file doesn’t exist under /etc/php5/mods-available
Please help.
Does /etc/php5/mods-available/mcrypt.ini
exist?
ls /etc/php5/mods-available/mcrypt.ini
If it does, you can enable it by running the following commands:
cp /etc/php5/mods-available/mcrypt.ini /etc/php5/apache2/conf.d/mcrypt.ini
sudo service apache2 restart
sudo php5enmod mcrypt