The thinphp5 framework encounters mkdir() Permission denied solution

 

Website reinstallation directly copy the database link information in the local program file to be changed to online, then mysql, apache, etc. have not changed

Error after running

mkdir() Permission denied

 

This is because the runtime directory does not have permissions

Solution

chown -R apache runtime 

This is to give the runtime directory to the user apache to be in the current directory. The directory diagram is as follows

Or give 777 permission directly

chmod -R 777 runtime

 

or

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324789579&siteId=291194637