Last Updated: February 25, 2016
·
929
· hckmar

Issue with Laravel in ubuntu 13.10

So, i'm starting develop with Laravel for php, because I see it's more legible than Codeigniter, back to the point.

I upgrade to ubuntu 13.10 because I want to see the new improvements, but I see a little problem when I want to run laravel, problem that didn't have in ubuntu 12.04:

Laravel requires the Mcrypt PHP extension.</code>

But I have the php5-mcrypt package installed, I reinstalled again... but nothing...

So, someone told me that the PHP modules got moved from the conf.d directory to the mods-available directory, and the mcrypt module got left behind. And to fix it, put a symlink to the mcrypt.ini file in the PHP config.

I'm ussing apache, so he said to use this line:

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/apache2/conf.d/20-mcyrpt.ini sudo service apache2 restart</code>

Some how, didn't work... I start to asking and finally I found this from a person with the same issue, his solution was this:

Your problem is for php-fpm (rather than Apache):

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini</code>

Enable mods

sudo php5enmod mcrypt</code>

and restart FPM

sudo service php5-fpm restart</code>

And finally I can start working with Laravel!

Have to say it's amazing framework, it's bit like rails, it's more simple, and I like it.