1

I just installed Laravel 5 through composer and it was installed globally on my mac. Now when I try laravel new blog and try to serve it on apache by php artisan serve i get the following error

ErrorException in compiled.php line 6635:
Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'

I get this everytime i deploy a new app. How to i solve the error?

Hetu Nandu
  • 15
  • 2

1 Answers1

1

From the Laravel 5 Installation page you can see the requiments section, which states that in order to use the framework, you need Mcrypt extension installed and enabled.

The Laravel framework has the following system requirements:

PHP >= 5.4

Mcrypt PHP Extension

OpenSSL PHP Extension

Mbstring PHP Extension

Tokenizer PHP Extension

You need to install and enable these extensions in order to use the framework.

Sh1d0w
  • 9,340
  • 3
  • 24
  • 35