【问题标题】:Unable to read lumen log file on centos servercentos服务器无法读取流明日志文件
【发布时间】:2017-05-06 10:11:03
【问题描述】:

您好,我已经为 API 设置了流明应用程序。昨天我已经设置了 CentOS 服务器。代码在我的 ubuntu 服务器上运行,但在 CentOS 服务器上运行不正常。我从服务器收到此响应:

The stream or file \"/var/www/html/api/storage/logs/lumen.log\" could not be opened: failed to open stream: Permission denied

【问题讨论】:

    标签: lumen


    【解决方案1】:
    sudo chmod 777 your-lumen-project/storage/logs/lumen.log
    

    【讨论】:

      【解决方案2】:

      您需要更改存储文件夹的所有权。 在 ubuntu 上运行这个

      sudo chown -R {current user}:www-data storage
      

      Ubuntu:

      sudo chown -R www-data:www-data storage
      sudo chown -R ubuntu:www-data storage
      

      Cent 操作系统:

      sudo chown -R apache:apache storage
      sudo chown -R {your centos user}:apache storage
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-02-13
        • 2016-11-02
        • 1970-01-01
        • 2016-04-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多