【问题标题】:How to set permission to (.env) in windows 10 server xampp localhost如何在 Windows 10 服务器 xampp localhost 中设置权限(.env)
【发布时间】:2022-01-16 13:29:40
【问题描述】:

enter image description here

im using xampp server on localhost and when try to install the database for laravel script get this error on file permission im 尝试将权限更改为完全控制但仍然出现错误我该如何解决?!

【问题讨论】:

    标签: laravel database permissions xampp localhost


    【解决方案1】:

    您必须使用 chmod 命令授予文件权限。

    这里,755 是权限“rwxr-xr-x”的八进制表达式。现在,分解 chmod 755 的值,

    7:4 + 2 + 1:读取、写入和执行(用户所有者)。

    5:4 + 0 + 1:读取和执行权限(组所有者)。

    5:4 + 0 + 1:读取和执行权限(其他)。

    chmod 775 /<file name>
    

    在您的情况下,如果它不起作用,请尝试提供存储路径意味着为 .env 添加权限

    【讨论】:

    • 如何为 .env 添加权限?
    猜你喜欢
    • 2020-11-15
    • 2012-04-29
    • 2019-12-09
    • 2011-11-14
    • 2016-04-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-06
    相关资源
    最近更新 更多