Open marcospassos opened 10 years ago
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,
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?
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}",
}
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']
}
Declaring service_autorestart => true
seems to fix that. Do you know why?
Well, that parameter restarts the (apache) service and therefore enables changes in the configuration.
Hello @example42!
First of all, thanks for sharing this useful module.
I'm facing some problems when trying to install the mongo extension:
I added the ppa manually but it didn't work:
Do you have any idea how can I solve that?
Thanks in advance.