【问题标题】:Apache doesn't restart after configuring Zend Guard - CentOS 7配置 Zend Guard - CentOS 7 后 Apache 不重启
【发布时间】:2017-05-19 10:19:22
【问题描述】:

我在我的 Centos7 服务器上下载并安装了 Zend Guard 库,然后将配置行放入 php.ini 文件并重新启动 apache...apache 不想重新启动..

这是我的 php 版本:

[root@XXXXXXXXXX home]# php -v
PHP 5.5.29 (cli) (built: Sep  3 2015 10:49:44) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.

我为 PHP 5.5 - 64 位安装了 Zend Guard Loader:

  • 我将这两个文件(ZendGuardLoader.so 和opcache.so)放入/usr/lib64/php/modules/
  • 我在 php.ini 文件的底部添加了这些行:

    zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so zend_extension=/usr/lib64/php/modules/opcache.so zend_loader.enable=1

我重新启动了 apache,什么也没有,必须按 ctrl-c ,注释行并重新启动。

我只用ZendGuardLoader.so 试过,结果是一样的。

你有什么想法吗?

【问题讨论】:

  • /var/log/apache2 日志文件呢?是否有一些错误信息?
  • Apache 拒绝运行,因为有很多事情可能出错了。
  • @alvits apache start 如果我删除有关 zendguard 的行...只有当我有这 2 行时它才起作用
  • 它很可能是在抱怨并在日志文件中写入它无法加载模块。那就摆脱它吧。

标签: linux apache centos7 zend-guard


【解决方案1】:

请执行命令

httpd -t

查看错误

它会显示错误配置所在的行号

问候

【讨论】:

  • 嗨,我昨天试过了,没有语法错误... httpd -t 语法正常,就像错误仅在库中一样...但我没有任何信息:/
  • 您好,您是否尝试过使用 LoadModule 模块名称/路径。那么在 httpd.conf 中文件并重新启动?
猜你喜欢
  • 2016-01-04
  • 2015-11-11
  • 2016-11-12
  • 2014-10-27
  • 2015-12-02
  • 1970-01-01
  • 2015-08-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多