I am getting this exception. How can I fix it?
Exception – yii\base\Exception
Failed to create directory "/var/www/html/sitr/runtime/cache": mkdir(): Permission denied
↵
Caused by: yii\base\ErrorException
mkdir(): Permission denied
in /var/www/html/site/vendor/yiisoft/yii2/helpers/BaseFileHelper.php at line 624
sudo chmod -R 775 /var/www/html/sitr/runtime
运行时文件夹不断生成文件,允许它执行此操作。
sudo chmod 777 -R /var/www/html/sitr/runtime
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.