使用 chef cookbook 在 debian 7.x 上安装 zend-server php 5.3

使用 chef cookbook 在 debian 7.x 上安装 zend-server php 5.3

尝试安装 zend server 时(6.3) 在 debian 7.x (wheezy) 上使用 php5.3zendserver 手册为了厨师我收到以下错误:(由于 PHP 应用程序中的代码较旧,因此需要 php5.3)

==> default: [2014-12-13T16:36:23+00:00] INFO: Starting install for package zend-server-php-5.3
==> default:
==> default: ================================================================================
==> default: Error executing action `install` on resource 'apt_package[zend-server-php-5.3]'
==> default: ================================================================================
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Some packages could not be installed. This may mean that you have
==> default: requested an impossible situation or if you are using the unstable
==> default: distribution that some required packages have not yet been created
==> default: or been moved out of Incoming.
==> default: The following information may help to resolve the situation:
==> default: The following packages have unmet dependencies:
==> default:  zend-server-php-5.3 : Depends: zend-server-php-5.3-common (= 6.3.0+b41) but it is not going to be installed
==> default:                        Depends: libapache2-mod-php-5.3-zend-server(>= 5.3.21) but it is not going to be installed
==> default: STDERR: E: Unable to correct problems, you have held broken packages.
==> default: ---- End output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: Ran apt-get -q -y install zend-server-php-5.3=6.3.0+b41 returned 100
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/zendserver/recipes/default.rb
==> default:
==> default:  65: package package_name do
==> default:  66:   :install
==> default:  67:   notifies :restart, 'service[zend-server]', :immediate
==> default:  68: end
==> default:  69:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/zendserver/recipes/default.rb:65:in `from_file'
==> default:
==> default: apt_package("zend-server-php-5.3") do
==> default:   action :install
==> default:   retries 0
==> default:   retry_delay 2
==> default:   default_guard_interpreter :default
==> default:   package_name "zend-server-php-5.3"
==> default:   version "6.3.0+b41"
==> default:   timeout 900
==> default:   cookbook_name :zendserver
==> default:   recipe_name "default"
==> default: end
==> default: [2014-12-13T16:36:23+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2014-12-13T16:36:23+00:00] ERROR: Running exception handlers
==> default: [2014-12-13T16:36:23+00:00] ERROR: Exception handlers complete
==> default: [2014-12-13T16:36:23+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-12-13T16:36:23+00:00] ERROR: apt_package[zend-server-php-5.3]
 (zendserver::default line 65) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
==> default: ---- Begin output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: STDOUT: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Some packages could not be installed. This may mean that you have
==> default: requested an impossible situation or if you are using the unstable
==> default: distribution that some required packages have not yet been created
==> default: or been moved out of Incoming.
==> default: The following information may help to resolve the situation:
==> default:
==> default: The following packages have unmet dependencies:
==> default:  zend-server-php-5.3 : Depends: zend-server-php-5.3-common (= 6.3.0+b41) but it is not going to be installed
==> default:                        Depends: libapache2-mod-php-5.3-zend-server(>= 5.3.21) but it is not going to be installed
==> default: STDERR: E: Unable to correct problems, you have held broken packages.
==> default: ---- End output of apt-get -q -y install zend-server-php-5.3=6.3.0+b41 ----
==> default: Ran apt-get -q -y install zend-server-php-5.3=6.3.0+b41 returned 100
==> default: [2014-12-13T16:36:23+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

看起来这个命令正在被执行:
$ apt-get -q -y install zend-server-php-5.3=6.3.0+b41

它给出以下输出:

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 zend-server-php-5.3 : Depends: zend-server-php-5.3-common (= 6.3.0+b41) but it is not going to be installed
                       Depends: libapache2-mod-php-5.3-zend-server (>= 5.3.21) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我被困在这里,不知道该怎么办。有人能帮帮我吗?

答案1

不太确定这是否仍然适用,但我们在 wheezy 上安装 zend 5.3 服务器时遇到了很多问题。经过多次尝试后,我们终于让它运行起来,但最终却出现了 SSL 库无效的情况,不得不在非 SSL 站点上运行 apache!

如果您仍在寻找解决方案,我建议将这些添加到您的 /etc/apt/soruces.list 并安装 squeeze php 5.3 堆栈(效果很好)。

德布http://ftp.us.debian.org/debian/squeeze 主要贡献 非自由 deb-srchttp://ftp.us.debian.org/debian/squeeze 主要贡献 非自由

高血压

相关内容