2

我正在尝试向 Zend 添加一个安全站点。

当我访问位于http://my_IP:10081的 Zend 服务器站点时,我可以在服务器扩展下看到“openssl built-in,ON”。

当我将 SSLEngine On 添加到 httpd.conf 时,我得到...

Invalid command 'SSLEngine', perhaps misspelled or defined 
by a module not included in the server configuration

缺少这条线会给出....

Invalid command 'SSLCertificateChainFile', perhaps misspelled or defined by 
a module not included in the server configuration.

Zend 网站的附录 F 说

Uncomment the following line...
Include conf/extra/httpd-ssl.conf

但是该行不在我的 conf 文件中,也没有指明路径。

/usr/lib64/httpd/modules 目录没有名为 mod_ssl.so 或类似文件的文件。

这是 Red Hat 上的 Zend 5.5

PHP 版本 5.3.8-ZS5.5.0 Zend 框架版本 1.11.10

我的经理说这是一个非常标准的安装。任何帮助都会很棒。谢谢。

4

1 回答 1

2

您的服务器上安装的 SSL 模块可能未启用。尝试:sudo a2enmod ssl

编辑:Nvm,我想我跳过了你说你使用 RedHat 的部分。我不相信 RedHat 中存在 a2enmod 等价物。

RedHat 通常有这些包含httpd.conf,您可以在其中找到如下行:

Include conf.d/*.conf

这应该对应于/etc/httpd/conf.d目录中的 ssl 配置文件。检查以确保存在这样的文件,以及它是否已在您的httpd.conf.

于 2012-02-24T14:29:29.967 回答