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.
3
  • which OS are you using? Commented May 14, 2015 at 12:08
  • @sameer-shaikh using Ubuntu Commented May 14, 2015 at 12:22
  • possible duplicate of Laravel requires the Mcrypt PHP extension Commented May 14, 2015 at 12:31

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

5 Comments

I have done this, says it's already installed I also tried sudo apt-get --reinstall install php5-mcrypt
did you restart your terminal
Yes, I also added the line 'extension=mcrypt.so' to my php.ini file and it still makes no difference
Yes I have restarted apache
if I do 'sudo php5enmod mcrypt' returns WARNING: Module mcrypt ini file doesn't exist under /etc/php5/mods-available
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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.