天天看點

thinkphp5 報mkdir(): Permission denied錯誤,解決辦法

用了chown -R 和 chmod -R 777 都不行之後可以用一下指令

chcon -R -t httpd_sys_rw_content_t  <RUNTIM_DIR_PATH>

<RUNTIM_DIR_PATH> 為runtime的路徑

參考: https://stackoverflow.com/a/16446586/1749293