If you are upgrading both the Controller and agents, first upgrade the Controller and then upgrade the agents.
Also, if you are upgrading multiple agents in your monitored environment, upgrade the agents for the tiers on which business transactions originate last. For more information about this requirement, along with Controller and agent compatibility information, see Agent and Controller Tenant Compatibility.
Before You Begin
Before you upgrade the PHP Agent on Alpine Linux:
- Add the
libstdc++
library:
- Add the
session
and sockets
PHP extensions:For example, if you are using PHP 8.2, then install the php82-session
and php82-sockets
extensions:
apk add php82-session php82-sockets
CODE
Upgrade the PHP Agent
1. Shut down the web server or php-fpm
.
2. Copy the controller host, controller port, application name, tier name and node name property values from your ini
file.
If you are running in multi-tenant mode, also copy the account name and account access key property values.
3. Recursively remove or rename the old Splunk AppDynamics PHP installation directory.
4. Download and extract the most recent agent tarball.
5. Run the installation script.
You must pass the controller access key as one of the options to the installer.
To find your access key, click
> License > Account.
6. Restart Apache or php-fpm.
If you are using the agent to monitor PHP CLI without running a web server, you can omit steps 1 and 6.