Library Problem Calling External Program from PHP
Posted: 04. February 2018 04:23
Hi,
I'm using XAMPP 7.2.1 x64 on Ubuntu Server 17.10 x64. I'm trying to migrate my website from xampp on Windows.
I am getting the following message "node: /opt/lampp/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1' not found (required by node) node: /opt/lampp/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.1d' not found (required by node)" when calling "node --version" from php using shell_exec.
I had a previous error about libstdc++ which I was able to fix by copying that library from my /usr/lib into the /opt/lampp/lib. That worked with no issues, but when I do that with libssl and libcrypto the error message goes away, but xampp can no longer start.
I need a way to replace the /opt/lampp/lib libraries with updated versions or a way to get shell_exec in php to use the system libraries. The path LD_LIBRARY_PATH is set by xampp to /opt/lampp/lib, but I cannot find a way to disable this.
Any help would be appreciated, thanks!
I'm using XAMPP 7.2.1 x64 on Ubuntu Server 17.10 x64. I'm trying to migrate my website from xampp on Windows.
I am getting the following message "node: /opt/lampp/lib/libssl.so.1.0.0: version `OPENSSL_1.0.1' not found (required by node) node: /opt/lampp/lib/libcrypto.so.1.0.0: version `OPENSSL_1.0.1d' not found (required by node)" when calling "node --version" from php using shell_exec.
I had a previous error about libstdc++ which I was able to fix by copying that library from my /usr/lib into the /opt/lampp/lib. That worked with no issues, but when I do that with libssl and libcrypto the error message goes away, but xampp can no longer start.
I need a way to replace the /opt/lampp/lib libraries with updated versions or a way to get shell_exec in php to use the system libraries. The path LD_LIBRARY_PATH is set by xampp to /opt/lampp/lib, but I cannot find a way to disable this.
Any help would be appreciated, thanks!