0

I have some scripts that utilize some of the openssl PHP functions, such as openssl_opbkdf2. I am migrating from an Ubuntu server to a newly-created CentOS 7 server with a fresh install of the entire LAMP stack. Despite hours and hours of googling, I am unable to figure out how to enable these PHP functions. Here is a link that illustrates my problem. And here is a link that shows my current configuration.

As is plain from the info list, OpenSSL is installed and working. Every indication I can find leads me to believe these commands should be available. But they're not! What am I missing?

1
  • "Oops, this resource could not be found". Please paste relevant information into your question.
    – womble
    Aug 7, 2015 at 0:02

1 Answer 1

5

You installed PHP 5.4, but the PHP functions you are trying to use were introduced in PHP 5.5.

Use the remi and remi-php55 repositories to update your system to PHP 5.5 (or choose a later version).

It should be sufficient to install the appropriate remi-release RPM, enable the remi and remi-php55 repositories, and then yum update.

3
  • Ok, that definitely puts me on the right track. I updated to PHP 5.5.28, and my problem persists. Is there another module I need to install/enable? Aug 6, 2015 at 22:47
  • You do need to restart the web server, so that it is actually using the new PHP version. For instance systemctl restart httpd Aug 6, 2015 at 22:49
  • ARG!! I been staring at the screen too long :< That took care of it - thanks!! Aug 6, 2015 at 23:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .