【问题标题】:Class 'Monolog\Logger' not found - on ServerPilot在 ServerPilot 上找不到类“Monolog\Logger”
【发布时间】:2014-07-09 14:37:34
【问题描述】:

ServerPilot.io 有自己的作曲家。我发现很多 Laravel 4.2 Class 'Monolog\Logger' 的解决方案没有找到,但是来自 ServerPilot 的作曲家(composer5.5-sp)使事情无法正常工作。

这个不在那里工作。

  1. composer5.5-sp 自我更新
  2. composer5.5-sp 更新
  3. composer5.5-sp 更新 --no-scripts

如何在 ServerPilot 上解决此问题?

【问题讨论】:

    标签: laravel-4


    【解决方案1】:

    您应该在以“root”或“ubuntu”身份登录时通过 sudo 运行 composer 的自我更新。也就是使用下面的方法来更新composer:

    sudo composer5.5-sp self-update
    

    您需要 sudo 的原因是 composer 是由 ServerPilot 全局安装的,因此需要 root 权限才能更新它。

    【讨论】:

    • 非常感谢,它成功了。 (我已经以root用户身份进入)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-23
    • 2021-02-12
    • 1970-01-01
    • 2018-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多