【问题标题】:Attempting to upgrade to Zend Server 6.0.1尝试升级到 Zend Server 6.0.1
【发布时间】:2013-06-20 14:28:19
【问题描述】:

我目前在 Red Hat Enterprise Linux Server 6.4 版(圣地亚哥)上运行 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,但它已安装并且是最新版本。

还有其他人遇到过这个问题吗?

【问题讨论】:

    标签: zend-server selinux


    【解决方案1】:

    看来升级zend-server-php需要安装SELinux并运行,可能是因为升级后更改了selinux规则。

    尝试以下步骤:

    1. 设置selinux的premisibe模式,(SELINUX=premissive)
    2. 让类型定位(SELINUXTYPE=targeted)
    3. 启用 selinux (SELINUX=enabled)
    4. 重启
    5. 升级您的系统
    6. 如果您不想使用 SELinux,请关闭它

    【讨论】:

    • 我编辑了 /etc/selinux/config 并设置了 SELINUX=permissive 然后重新启动了服务器,但我收到了同样的错误。
    【解决方案2】:

    继我对上一篇帖子的评论it seems SELinux isn't as simple as turning it back on

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

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

    Zend Server 6.0.1 现已安装!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-11
      • 1970-01-01
      • 1970-01-01
      • 2019-12-24
      • 1970-01-01
      • 2013-11-10
      相关资源
      最近更新 更多