AppD Archive

Can't install PHP monitoring tool (error)

CommunityUser
Splunk Employee
Splunk Employee

I continually receive the following error when attempting to install AppDynamics PHP monitoring:

/usr/lib/appdynamics-php5/install.sh: line 400: [: too many arguments
readlink: missing operand
Try `readlink --help' for more information.
[Error] Unable to determine PHP extensions config directory. Please re-run /usr/bin/appd-install manually.

I've tried to manually set my PHP extensions directory using:

APPD_PHP_CONFIGURATION_DIR=usr/local/lib/php/extensions/no-debug/no-debug-non-zts-20100525 rpm -i appdynamics-php-agent-3.8.0.1-1.x86_64.rpm

but still no luck.

Any idea what's going on? 

Thanks,

0 Karma

Kyle_Furlong
Contributor

Hey bwilson,

I believe the line should read:

APPD_PHP_EXTENSION_DIR=/usr/local/lib/php/extensions/no-debug/no-debug-non-zts-20100525 rpm -i appdynamics-php-agent-3.8.0.1-1.x86_64.rpm

 

If this fails again, please post the install log (the installer will output its location on failure).

 

Best regards,

 

Kyle

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks Kyle. Still failing...

Here's the log (with my URL deleted -- let me know if you need that):

MAIL=/var/spool/mail/benjiw
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/php
PERL5LIB=/home/benjiw/perl5/lib/perl5
PERL_LOCAL_LIB_ROOT=/home/benjiw/perl5
PERL_MB_OPT=--install_base "/home/benjiw/perl5"
PERL_MM_OPT=INSTALL_BASE=/home/benjiw/perl5
PWD=/
RPMINSTALL=true
RPM_INSTALL_PREFIX0=/
RPM_INSTALL_PREFIX=/
SHELL=/bin/bash
SHLVL=4
SSH_CLIENT=74.85.241.1 32256 22
SSH_CONNECTION=74.85.241.1 32256 107.170.58.225 22
SSH_TTY=/dev/pts/0
TERM=xterm
USER=benjiw
VISUAL=pico
_=/bin/env
################################################################################

Found PHP installation in /usr/bin

Detected PHP Version:
PHP 5.4.28 (cgi-fcgi) (built: May 12 2014 19:24:18)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

PHP version id:
PHP extensions directory:
PHP ini directory:
Controller Host: localhost
Controller Port: 8080
Application Name: MyApp
Tier Name: xx.com
Node Name: xx.com
Account Name:
Access Key:
SSL Enabled: false
HTTP Proxy Host:
HTTP Proxy Port:

[Error] Unable to determine PHP extensions config directory. Please re-run /usr/bin/appd-install manually.

0 Karma

Kyle_Furlong
Contributor
It seems like your PHP install is not being detected. Try creating a file
phpinfo.php in your document root with the contents:

0 Karma

Kyle_Furlong
Contributor

Apologies for the strange post, the forum software ate the rest of it.

We need the output of php -i or phpinfo() for the php running your site. Let me know if you need details on getting this info.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
0 Karma

Kyle_Furlong
Contributor

Ah, it looks like the extension_dir is slightly different:

/usr/local/lib/php/extensions/no-debug-non-zts-20100525

 

Please try that one and repost the install log.

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Still getting the extensions config directory error.... log:


Hostname: pac.pacific-crest-research.com
Location: /usr/lib/appdynamics-php5
System: Linux pac.pacific-crest-research.com 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:16:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
User: uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
Environment:

PERL_MB_OPT=--install_base "/home/benjiw/perl5"
PERL_MM_OPT=INSTALL_BASE=/home/benjiw/perl5
PWD=/
RPMINSTALL=true
RPM_INSTALL_PREFIX0=/
RPM_INSTALL_PREFIX=/
SHELL=/bin/bash
SHLVL=4
SSH_CLIENT=74.85.241.1 1789 22
SSH_CONNECTION=74.85.241.1 1789 107.170.58.225 22
SSH_TTY=/dev/pts/0
TERM=xterm
USER=benjiw
VISUAL=pico
_=/bin/env


################################################################################
Found PHP installation in /usr/bin

Detected PHP Version:
PHP 5.4.28 (cgi-fcgi) (built: May 12 2014 19:24:18)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

PHP version id:
PHP extensions directory:
PHP ini directory:
Controller Host: localhost
Controller Port: 8080
Application Name: MyApp
Tier Name: pac.pacific-crest-research.com
Node Name: pac.pacific-crest-research.com
Account Name:
Access Key:
SSL Enabled: false
HTTP Proxy Host:
HTTP Proxy Port:

[Error] Unable to determine PHP extensions config directory. Please re-run /usr/bin/appd-install manually.

0 Karma

Kyle_Furlong
Contributor

It looks the the environment variable isn't getting set. I'd recommend using the shell script installer instead. Alternatively, you can Google setting environment variables for your particular shell environment.

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 ...