1

I have setup an LAMP server in CentOS successfully and installed Magento, On clearing cache getting error as openssl extension is required for SSL/TLS.

I compiled PHP from source successfully compiled ./configure --with-openssl (No error but haven't provided the path)

I tried the following by re-configuring PHP from source.

I have installed yum install openssl-devel to the latest (Nothing to do)

Can anyone tell me how to find the path to be provided for with-openssl?

whereis openssl
openssl: /usr/bin/openssl /usr/lib64/openssl /usr/include/openssl /usr/share/man/man1/openssl.1ssl.gz

On including /usr/bin/openssl, /usr/lib64/openssl, /usr/include/openssl as path to --with-openssl getting error

checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's

I don't know what I am missing with this.

enter image description here

enter image description here

enter image description here

  • Do yourself a favor + install latest Ubuntu + setup the ondrej PPAs for Apache + PHP. These PPAs will also pull in latest OpenSSL. With these PPAs, you can also switch between 5.6 + 7.0 + 7.1 + 7.2 easily. Building PHP from source is easy. Integrating it with Apache + OpenSSL + MaridDB + many other libraries will suck massive amounts of time. Then you'll have to repeat this process each time any underlying library changes. – David Favor Oct 28 '17 at 13:13
  • I have centos in my server and my requirement lies like this, I need to install everything from source, I am not well versed with linux, Is there any possibility to fix this with the same setup. How can I find the path to include with --with-openssl – fernandus Oct 28 '17 at 14:28
  • How can I find the path to include with --with-openssl – fernandus Nov 1 '17 at 11:03
  • Yes. Best way is to first install openssl + rebuild openssl each time an update comes out. Then do the same for Apache + PHP. Keep in mind, based on the data you've provided, there's a high likelihood you're running a Linux Kernel that's hackable. If you go with this config, most of your time will be spent just trying to keep all this bandaged + running. Also, if you are running a hackable Kernel, you'll have to deal with continually cleansing your system of hacks, which will then immediately reappear. All very time consuming. – David Favor Nov 1 '17 at 12:57
  • I have installed openssl with yum its up to date and i have reconfigured Apache and php its not working. phpinfo() shows its enabled from the above image I have attached but when I do php -i | grep -i openssl it shows open ssl is disabled. – fernandus Nov 4 '17 at 7:25
0

I have configured php twice with and without --prefix

So there are two packages one on /usr/local and another on /usr/local/php7 of same php version 7.1.10

Now my terminal points to /usr/local/ and web points to /usr/local/php7/.

I need to do /usr/local/php7/bin/php -m to get the modules of Web

I have raised a new conversation, How to point web version to CLI My CLI and web point to two different php path, How to fix

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.