Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel undefined function openssl_encrypt()

I use laravel5.1 and it works fine on php cli. But i publish my porject to apache(version == 2.4), the problem happened.

FatalErrorException in Encrypter.php line 67:
Call to undefined function openssl_encrypt()

like image 961
Atom Avatar asked Jul 26 '16 06:07

Atom


1 Answers

First make sure you installed the openssl extension (spotted by deceze), then:

  1. Go to your php.ini file
  2. Remove the semicolon before extension=php_openssl.dll
  3. Restart your Apache

I'm expecting this to be the problem.

like image 118
Peter Avatar answered Sep 22 '22 04:09

Peter