Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newrelic::agent::php failure on Debian7 #35

Open
luckyhsif opened this issue May 13, 2015 · 3 comments
Open

newrelic::agent::php failure on Debian7 #35

luckyhsif opened this issue May 13, 2015 · 3 comments

Comments

@luckyhsif
Copy link

Tried to install newrelic php agent on Debian 7, but got errors,
class {'newrelic::agent::php': newrelic_license_key => $license, newrelic_ini_appname => $application_name }
Could not evaluate: /bin/sh: 2: /etc/php5/mods-available/newrelic.ini: not found

If conf dir was specified, it got this:
Could not evaluate: /bin/sh: 2: /etc/php5/fpm/conf.d/newrelic.ini: not found
Could not evaluate: /bin/sh: 2: /etc/php5/mods-available/conf.d/newrelic.ini: not found

other info
php-fpm and php-cli were installed on the system, and new relic Linux part was working fine. '/usr/bin/newrelic-install /etc/php5/mods-available' also worked in interactive mode.

@fsalum
Copy link
Owner

fsalum commented Jun 16, 2015

how did you define the module to be installed?

@luckyhsif
Copy link
Author

Hi,

Here is the usage:

class {'newrelic::server::linux': newrelic_license_key => $license }

class {'newrelic::agent::php': newrelic_license_key => $license, newrelic_ini_appname => $application_name-$stage} # not working, newrelic.ini not found

We have used a different way to achieve the desired result,

    file { "/var/cache/debconf/newrelic-php5.preseed":
      ensure       => present,
      content      => "newrelic-php5 newrelic-php5/5.1-deprecation  note

newrelic-php5 newrelic-php5/application-name string $application_name-$stage
newrelic-php5 newrelic-php5/license-key string $license",
}

     package { "newrelic-php5":
       ensure       => present,
       responsefile => "/var/cache/debconf/newrelic-php5.preseed",
       require      => File["/var/cache/debconf/newrelic-php5.preseed"],
     }

Thanks & Regards,
Roger

On 16 Jun 2015, at 4:23 pm, Felipe Salum [email protected] wrote:

how did you define the module to be installed?


Reply to this email directly or view it on GitHub #35 (comment).

@YarNhoj
Copy link
Collaborator

YarNhoj commented Aug 11, 2016

@luckyhsif I'm trying to clean up some of these issues. I know it's been a while since you opened this, are you still having this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants