Git Product home page Git Product logo

Comments (6)

alvagante avatar alvagante commented on August 16, 2024

It seems an issue related to the deb package and its dependency :
The following packages have unmet dependencies:
php5-mongo : Depends: phpapi-20090626

The define just tries to execute
/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mongo
so the system must be in the condition of being able to run this command without issues,

from puppet-php.

marcospassos avatar marcospassos commented on August 16, 2024

Hello @example42!

I executed the command and this is the result:

vagrant@precise64:/var/www$ sudo /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5-mongo 
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php5-mongo

Any suggestion?

from puppet-php.

alvagante avatar alvagante commented on August 16, 2024

How is called the php-mongo package name?
I might need to add a parameter that allows overrides of the computed name in:

  $real_package_name = $::operatingsystem ? {
    ubuntu  => "php5-${name}",
    debian  => "php5-${name}",
    default => "php-${name}",
  } 

from puppet-php.

marcospassos avatar marcospassos commented on August 16, 2024

I just have made a research and I can't find any php mongo package for Ubuntu. The problem installing through pecl is that the extension does not get loaded. Looking into the log, I noticed the following warning:

[Sun Mar 30 14:55:20 2014] [notice] caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mongo.so' - /usr/lib/php5/20100525/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0

This is the puppet snippet:

php::pecl::module { 'mongo':
    use_package => "no",
}

php::ini { 'php_ini_configuration':
  value   => [
    'extension=mongo.so'
  ],
  notify  => Service['apache'],
  require => Class['php']
}

from puppet-php.

marcospassos avatar marcospassos commented on August 16, 2024

Declaring service_autorestart => true seems to fix that. Do you know why?

from puppet-php.

alvagante avatar alvagante commented on August 16, 2024

Well, that parameter restarts the (apache) service and therefore enables changes in the configuration.

from puppet-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.