0

我目前在 Red Hat Enterprise Linux Server 版本 6.4 (Santiago) 上运行 Zend Server 5.6.0 (PHP 5.3)

我希望升级到 Zend Server 6.0.1,但无论是自动尝试(通过 install_zs 文件)还是手动尝试(编辑 /etc/yum.repos.d/zend.repo),我都会收到相同的消息。

# yum update
...
Error: Package: zend-server-php-5.3-6.0.1-662.x86_64 (Zend)
           Requires: /usr/sbin/semanage
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

我不愿意使用 --skip-broken ,因为我觉得它会引起问题。

我会指出 SELinux 已安装在服务器上,但已禁用。我通过编辑 /etc/selinux/config 文件验证了这一点。

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

文件 /usr/sbin/semanage 不存在。我为找出为什么导致我安装 SELinux 所做的挖掘工作,但它已安装并且是最新版本。

有没有其他人有这个问题?

4

2 回答 2

0

继我对上一篇文章的评论之后,似乎 SELinux 并不像重新打开它那么简单

按照这些说明操作后,我仍然收到相同的错误,因此我尝试安装 semanage,但是我无法复制该过程。

我最终向成功安装 semanage 的托管公司提交了一张支持票。

Zend Server 6.0.1 现已安装!

于 2013-06-21T20:06:02.633 回答
0

It looks like upgrading zend-server-php requires SELinux installed and working, probably because of changing selinux rules after upgrading.

Try following steps:

  1. set premisibe mode of selinux, (SELINUX=premissive)
  2. let the type targeted (SELINUXTYPE=targeted)
  3. enable selinux (SELINUX=enabled)
  4. reboot
  5. upgrade your system
  6. switch the SELinux off, if you do not want to use it
于 2013-06-20T16:16:53.453 回答