proxytoworld
V2EX  ›  PHP

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

  •  
  •   proxytoworld · May 14, 2020 · 2767 views
    This topic created in 2368 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
    agdhole
    May 15, 2020
    1
    sudo chmod -R 755 laravel
    chmod -R o+w laravel/storage
    shellic
    shellic
    May 15, 2020 via Android
    2
    chown 把文件所有者设置为 apache 的运行用户
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1515 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:36 · PVG 23:36 · LAX 07:36 · JFK 10:36
    ♥ Do have faith in what you're doing.