• How to fix Error: laravel.log could not be opened?


    Never set a directory to 777. you should change directory ownership. so set your current user that you are logged in with as owner and the webserver user (www-data, apache, ...) as group. You can try this:

    sudo chown -R {your current user}:www-data storage
    sudo chown -R {your current user}:www-data bootstrap/cache
    

    then to set directory permission try this:

    chmod -R 775 storage
    chmod -R 775 bootstrap/cache
    

    Update:

    Webserver user and group depends on your webserver and your OS. to figure out what's your web server user and group use the following commands. for nginx use:

    ps aux|grep nginx|grep -v grep

    for apache use:

    ps aux | egrep '(apache|httpd)'

  • 相关阅读:
    git简单使用
    简单Spring和mybatis整合配置文件
    ASP.NET程序开发范例宝典
    C# DataSet和DataTable详解
    AOP
    匿名内部类
    数据库事务
    mybatis
    线程池
    单例模式
  • 原文地址:https://www.cnblogs.com/fenle/p/8452301.html
Copyright © 2020-2023  润新知