proxytoworld
V2EX  ›  PHP

u 安装完 laravel7 后,访问网站出现权限错误

  •  
  •   proxytoworld · May 14, 2020 · 2427 views
    This topic created in 2209 days ago, the information mentioned may be changed or developed.

    第一次访问出现这个错误:The stream or file "/var/www/laravel/storage/logs/laravel.log" could not be opened: failed 有 v 友知道为什么吗,还没有进行编程 环境:ubuntu1804 + PHP7.2.24 + apache2.4.29 已进行 chmod -R 755 storage/

    2 replies    2020-05-15 05:44:16 +08:00
    agdhole
        1
    agdhole  
       May 15, 2020
    sudo chmod -R 755 laravel
    chmod -R o+w laravel/storage
    shellic
        2
    shellic  
       May 15, 2020 via Android
    chown 把文件所有者设置为 apache 的运行用户
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1139 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
    ♥ Do have faith in what you're doing.