记录分享

TP5 Linux下Permission denied

对于tp框架而言,自动生成的文件或者目录应该是runtime目录,所以在线部署代码的时候,开放此类目录的权限。

所以解决mkdir() premission denied 的问题最直接的方式,把runtime权限放开,让所有用户都可以创建它。

在runtime同级目录下执行

chmod -R 777 runtime

或者宝塔修改权限777

即可成功访问!

13,586条评论

  • 加密賭場

    I think what you published made a ton of sense.
    However, what about this? suppose you wrote a catchier post title?
    I ain’t saying your information is not solid, but what if you added a title to maybe get
    a person’s attention? I mean TP5 Linux下Permission denied – RocYuan is kinda boring.
    You ought to peek at Yahoo’s front page and see how they create article headlines to get viewers to
    open the links. You might add a related video or a picture or two to get readers interested about everything’ve
    got to say. Just my opinion, it could bring your posts a little bit more interesting.

  • Africahit News

    Greate article. Keep writing such kind of information on your page.
    Im really impressed by your site.
    Hello there, You’ve done an incredible job. I will certainly digg it and personally suggest to my friends.
    I’m confident they’ll be benefited from this web site.

Leave a Reply

邮箱地址不会被公开。