我想使用Puppet Labs Apache 模块在 Ubuntu 16.04 上安装带有 PHP 7.0 的 Apache 。
- 按照文档,该模块支持 Ubuntu 16.04。
- 有一张与 PHP 7.0 支持相关的票证,并且有一个接受的合并请求应该添加 PHP 7.0 支持。
- 看起来合并中提供的修复不包含在模块 1.9.0 版本中。
问题是
- 有什么方法可以使用建议的修复程序并使用 PHP 7.0 安装 Apache?
- 我应该在清单中写什么?
以下代码(来自 Puppet 清单)在 Ubuntu 16.04 上不起作用
class { 'apache':
mpm_module => 'prefork',
}
include apache::mod::php
我有以下错误
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libapache2-mod-php5' has no installation candidate
Error: /Stage[main]/Apache::Mod::Php/Apache::Mod[php5]/Package[libapache2-mod-php5]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install libapache2-mod-php5' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package libapache2-mod-php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libapache2-mod-php5' has no installation candidate
我尝试配置 FastCGI 服务器来处理 PHP 文件,但这也失败了,并出现了几乎相同的错误消息。该模块对 PHP 7.0 一无所知。