AppD Archive

PHP agent install filed with some errors.

CommunityUser
Splunk Employee
Splunk Employee

I tried to install the PHP agent appdynamics-php-agent-4.0.6.0-1.x86_64.r on centOS.
But the install failed with following errors.
-----------------------------------------------------------------------------------------
    [root@app_dev appdynamics-php-agent]# ls -ltr
    合計 46808
    -rw-rw-r--. 1 root root     4055  5月 12 13:04 2015 runme.sh
    -rw-rw-r--. 1 root root 47919782  5月 12 13:04 2015 appdynamics-php-agent-4.0.6.0-1.x86_64.rpm
    -rw-r--r--. 1 root root      393  5月 15 13:44 2015 installVars
    [root@app_dev appdynamics-php-agent]# bash runme.sh
    Installing AppDynamics PHP agent: 4.0.6.0GA.8464.7cb8945756a0779766bf1b4c32e49a96da7b8cfe
    error: %pre(appdynamics-php-agent-4.0.6.0-1.x86_64) scriptlet failed, exit status 1
    error: install: %pre scriptlet failed (2)。skipping appdynamics-php-agent-4.0.6.0-1
-----------------------------------------------------------------------------------------


I have already add these information to the installVars file.
  APPD_PHP_PATH、APPD_PHP_CONFIGURATION_DIR
  APPD_PHP_EXTENSION_DIR

But the situation doesn't change.
Could you tell me how to install the PHP agent correctly?

http://community.appdynamics.com/t5/AppDynamics-Discussions/Install-php-agent-failed-with-exit-statu...



Machine environment are as follows,
・Controller
 IP:***.***.***.77
 OS:Windows7(32bit)
 Virtual OS on ESX

・Agent
IP:***.***.***.110 (same segument as a controller)
 OS:CentOS 6.5(64bit)
 Virtual OS on ESX

Thanks and Regards,

0 Karma

Piyush_Mundra
Communicator

Hi kanako.yoshiba,

We see such errors reported when PHP is not installed at the standard location on server. We request you to try the agent setup using Shell Script which is very robust and flexible. Please find the complete documentation for the same at https://docs.appdynamics.com/display/PRO40/Install+the+PHP+Agent+using+a+Shell+Script

You can download the shell script installer from http://download.appdynamics.com/

Please let us know if you encounter any issue with this.

Best Regards,

Piyush

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Piyush,

Thank you for your replay.

PHP agent could be installed using shell spript.

Thank you for your help!!

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...