Laravel undefined function openssl_encrypt()

后端 未结 9 2262
太阳男子
太阳男子 2020-12-09 05:49

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 Encryp

9条回答
  •  一生所求
    2020-12-09 06:13

    as most point out, you need to uncomment openssl extension in php.ini.

    I was struggling with the same too and i realized php is looking for extensions in "c:\php", but mine was a xampp installation. Pointing extension_dir in php.ini to correct php extension path; in my case "c:\xampp\php.7\ext" solved the issue.

    Hope that helps somebody.

提交回复
热议问题