Closed aistis- closed 9 years ago
The version to specify should be exactly the one of the package you want to install, on the underlying distro (and of course you must have a 5.6(.x) php package available, either via default or additional repos.
The solution:
apt::ppa { 'ppa:ondrej/php5-5.6': }
class { 'php':
version => 'latest',
package => "php5-fpm",
service => "php5-fpm",
service_autorestart => false,
config_file => "/etc/php5/fpm/php.ini",
require => [
Apt::Ppa['ppa:ondrej/php5-5.6'],
Exec['apt-update']
]
}
Thank you for the reference note. I won't add the ppa management in the module, since it's not an official one, afaik, and would be out of scope, somehow. This is the typical stuff that can go to local profile modules.
updated:
apt::ppa { 'ppa:ondrej/php': }
class { 'php':
version => 'latest',
package => "php5.6-fpm",
service => "php5.6-fpm",
service_autorestart => false,
config_file => "/etc/php/5.6/fpm/php.ini",
require => [
Apt::Ppa['ppa:ondrej/php'],
Exec['apt-update']
]
}
If I try to install PHP 5.6 I get the following error
Config: