How to resolve "Error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory" ?

How to resolve "Error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory" ?

APM Insight PHP agent requires libcurl to be available in the default library directories, like /usr/lib. However, if libcurl is not installed on the system, the agent can use the library in the /opt/zpa/lib directory.

 

To enable the agent to use the pre-compiled version shipped with PHP Agent, follow the below given steps:

 

1. Navigate to /opt/zpa/lib and type the command

    n -s libcurl.so.4.4.0 libcurl.so.4
     
     This will create a symbolic link and zpdp will load properly

2. Restart the zpdp service, via


  cd /opt/zpa/bin && sh run.sh restart 

Or

          (on systemd supported servers)
   service zpdpsvc restart