I just upgraded my PHP from 7.1.1 to 7.4.5. I was able to use openssl_*() crypt and decrypt functions on 7.1.1. Now, I can’t use on 7.4.5. The error is:
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt()
There are no libeay32.dll and ssleay32.dll files in PHP 7.4.5 folder. My Apache Server version is 2.4.25.
And extension=openssl is enable in php.ini.
May someone help about my first question on StackOverflow?
Advertisement
Answer
I solved my problem after 6 days. Here is solution for others: After enable openssl in php.ini file and copied libeay32.dll and ssleay32.dll files into php7 directory, just included needed dll files into httpd.conf like that:
LoadFile "pathtophp7libeay32.dll" LoadFile "pathtophp7ssleay32.dll" LoadFile "pathtophp7php7ts.dll" LoadFile "pathtophp7libpq.dll"