0

I'm trying to instal laravel the following fairly sure I have mcrypt installed

me:~/public_html$ composer create-project laravel/laravel laravel-test
 Installing laravel/laravel (v5.0.22)
 - Installing laravel/laravel (v5.0.22)
Loading from cache

Created project in laravel-test
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of      packages.

Problem 1
- Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
- laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
GAV
  • 1,205
  • 2
  • 18
  • 38

2 Answers2

0
sudo apt-get install php5-mcrypt

Create an auxiliary symlink and enable the module:

cd /etc/php5/mods-available

ln -sf ../conf.d/mcrypt.ini .

php5enmod mcrypt

Finally, reload apache2 configuration:

service apache2 reload

Try this first and then run your above code as laravel needs mcrypt php extension installed.

Sameer Shaikh
  • 7,564
  • 2
  • 17
  • 32
0

This solved my problem

  sudo rm /etc/php5/mods-available/mcrypt.ini
  sudo apt-get purge php5-mcrypt
  sudo apt-get install mcrypt
  sudo apt-get install php5-mcrypt
  sudo php5enmod mcrypt

link here - Error Installing Laravel: Mcrypt PHP extension required

Community
  • 1
  • 1
GAV
  • 1,205
  • 2
  • 18
  • 38