【问题标题】:Apache can not work, when updated to php5.5Apache 不能工作,更新到 php5.5 时
【发布时间】:2023-03-18 17:58:01
【问题描述】:

我在我的 ubuntu 服务器上安装 apachephp5.3passenger 和 apache。

我尝试按照link 将 php5.3 升级到 php5.5。

我输入$ php -v,它会显示正确的版本。

但是当我尝试停止和启动 apache 时,它​​会提醒我:

$ service apache2 stop
 * Stopping web server apache2                                                                                                                                                   *

$ service apache2 start
 * Starting web server apache2                                                                                                                                                   *
 * The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 1 of /etc/apache2/apache2.conf: Cannot load /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.24/buildout/apache2/mod_passenger.so into server: /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.24/buildout/apache2/mod_passenger.so: undefined symbol: unixd_config
Action 'configtest' failed.
The Apache error log may have more information.

我想可能是乘客原因。但是如何解决呢?

【问题讨论】:

  • 尝试停止你的 apache 然后启动你的 apache 服务器。因为重新启动可能无法为您提供足够的解决方案。
  • @SulthanAllaudeen,感谢您的回复,我更新了我的问题

标签: php apache ubuntu passenger


【解决方案1】:

试试这个:

sudo etc/init.d/apache2 restart

【讨论】:

    【解决方案2】:

    在启动命令后也试试这些命令

    service apache2 stop
    

    比重启服务器

    【讨论】:

    • 不行,我认为命令service restart 等于service stop; service start
    • 您使用的是哪个操作系统?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-29
    • 2019-03-07
    • 2016-02-29
    • 1970-01-01
    • 2014-12-14
    • 1970-01-01
    相关资源
    最近更新 更多