tp5 + linux + apache php7.1.30 under environment, upload pictures error: mkdir (): permission denied

Made a own blog, upload pictures back when the error as shown:

First reaction is a permissions problem, runtime and uploads folder has given 777, and beyond the scope of solving rookie, decisive Baidu, but Baidu a bunch, all about runtime until I see the same problem with my big brother : manual Ait them https://www.cnblogs.com/ctsch/p/7859565.html , https://ask.fastadmin.net/question/1180.html

I stroked a stroke memory (just remember to solve the ... TAT): talking with the user's user group permissions are not in place, in the apache configuration file, users with user groups are apache, www changed the project folder and the folder where users and groups are changed to www, after giving them to configure all the permissions www, then give uploads and runtime read-write access, then restart apache, this issue plagued me most of the day. .. and so on, there is no ending, and being given:

session_start():Session data file is not created by your uid

 

Translation say:

Baidu then I found a big brother: https://blog.csdn.net/qq_34908844/article/details/70055602

Analysis of very place, I have to restart the session files deleted light, the problem is solved.

Next time thanks link:

CSDN Chai Kun: configure apache user and group permissions centos

End of the World Snow: modifying their user and group apache start under linux

CSND 郭玉朝 session_start():Session data file is not created by your uid

 

By the way problems upload size, the picture size exceeds the limit of service will get an error: Call to a member function validate () on null, can not receive (also can be considered not accept it hhh)

The eldest brother has posted details: https://chenxuehu.com/article/2017/03/6218.html

I will not go into this rookie

 

Guess you like

Origin www.cnblogs.com/gushengyan/p/10950911.html