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
Follow the below steps:
This worked for me and I hope it helps someone else.
I am using wampserver and i had the same problem. Openssl was enabled in php.ini but there is another ini called phpForApache which has a line to enable openssl too. It worked for me.
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.