Ras
Ras

Reputation: 628

OpenSSL installed but not working

I'm trying to use the CryptoJS AES module in my php project but I have the following error:

Fatal error: Call to undefined function openssl_random_pseudo_bytes() enter image description here

Checking the configuration of PHP I noticed that both OpenSSL and Mcrypt are enabled

enter image description here

Anyone know more about this error? could be some restrinction to my user? (I'm on a shared-hosting). The PHP version is 5.2.1.7 on Apache2. Thanks

I've also checked if PHP has been compiled with the correct --openssl and so it is

enter image description here

Upvotes: 0

Views: 479

Answers (1)

charming_disorder
charming_disorder

Reputation: 26

You need to upgrade PHP to version >= 5.3.

Upvotes: 1

Related Questions