Method to upgrade PHP Agent

Method to upgrade PHP Agent

Manual upgrade from user terminal
            Whenever a new version of the agent goes live, it will be listed on this APM Insight Download page.                    
    1. The latest agent can also be downloaded from AppManager web client's APM -> Add new Monitors page.
Windows
  1. Once the latest version has been downloaded, login to the machine where the old agent is installed.
  2. Install the latest version by double clicking on the MSI. During installation, an option to overwrite the existing installation will be shown

                             
  1. Proceed with the installation. It will overwrite the existing version without loss of any settings.         
       
Linux           
  1. Once the latest version has been downloaded, Copy and unzip the agent under /opt/zpa/bin (so that /opt/zpa/bin/zpa contains the extracted files of latest agent) using the following commands :                                                         
  cp agent_php.zip /opt/zpa/bin           
 cd /opt/zpa/bin                                      
  unzip agent_php.zip                              

  1. Copy the latest "upgrade" file from the extracted path to /opt/zpa/bin (overwrite the existing upgrade file) using the following command:                                        
cp /opt/zpa/bin/zpa/bin/upgrade /opt/zpa/bin/
  1. Execute the upgrade binary using the following commands:                                                         
  cd /opt/zpa/bin     
  chmod +x upgrade 
   ./upgrade                
  1. Restart your PHP agent using the following command:                                                         
sh run.sh restart
  1. Restart your web server / FPM server using the following commands:
                              #For Apache servers,                                       
$ sudo service apache2 restart
                              #For FPM servers,                                        
$ sudo service php-fpm restart

     

      • Related Articles

      • Reconfigure APM Insight PHP agent after 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 ...
      • Method to Upgrade .Net Agent

        Manual upgrade from user terminal: Whenever a new version of the agent goes live, it will be listed on this APM Insight Download page. The latest agent can also be downloaded from AppManager web client's APM -> Add new Monitors page Once the latest ...
      • Method to upgrade .NET Core Agent

        Manual upgrade from user terminal: Whenever a new version of the agent goes live, it will be listed on this APM Insight Download page. The latest agent can also be downloaded from AppManager web client's APM -> Add new Monitors page Once the latest ...
      • Method to upgrade Node Js Agent

        Manual upgrade from user terminal:                                                                                                   To upgrade the APM Insight Node.js agent, follow these instructions:            Stop the Node.js application. Access ...
      • 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.   ...