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
- 'ln -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.
Related Articles
Customize URL names using PHP agent API
With APM Insight PHP agent, you can customize URL names for your web transactions. Here's how you can do it: Open the PHP script of the transaction for which you want to customize the URL. Add the following snippet in any part of the PHP script ...
Ignore transactions from monitoring
To ignore or drop transactions from monitoring by the APM Insight PHP agent, follow the below-given steps. Install APM Insight PHP agent in your application and add a configuration file /opt/zpa/conf/transaction_drop_patterns.conf Add transaction ...
Automatically restart APM Insight PHP agent during system reboots
To automatically restart APM Insight PHP agent during system reboots, use the below given steps: For systemd servers: From APM Insight PHP agent version 2.8, agent will automatically start during server reboots for systemd supported Linux flavors. ...
Reconfigure APM Insight PHP agent during PHP version upgrade
If you have upgraded your PHP version and face problems in monitoring after the upgrade, here's how you can resolve it. In general, APM Insight PHP agent registers with the PHP version present in the server at the time of installation. So when you ...
Error : GLIBC 2.14 not found (required by ./installer)
It means that the downloaded PHP agent was built with GLIBC 2.14 version, and it requires that version. Your system has an older version of GLIBC installed and hence you face this error. PHP agent built with older version of GLIBC can be downloaded ...