centos服务器中的laravel的正确权限是什么?
我已经在centos服务器中安装了laravel,并且我有Nginx Web服务器。 因此,我以这种方式给予了许可:centos服务器中的laravel的正确权限是什么?,laravel,security,centos,Laravel,Security,Centos,我已经在centos服务器中安装了laravel,并且我有Nginx Web服务器。 因此,我以这种方式给予了许可: sudo chown nginx:nginx -R laravel sudo find /path/to/laravel/root/directory -type f -exec chmod 644 {} \; sudo find /path/to/laravel/root/directory -type d -exec chmod 755 {} \; 我有一份工作,
sudo chown nginx:nginx -R laravel
sudo find /path/to/laravel/root/directory -type f -exec chmod 644 {} \;
sudo find /path/to/laravel/root/directory -type d -exec chmod 755 {} \;
我有一份工作,每天晚上都要执行。但它告诉我,许可被拒绝了
这是它的错误:
ErrorException:文件内容(/storage/framework/views/4c5ceab6c4a8a0145f0cbc6ee6ffbfc02a9f53c4.php):无法打开流:在/vendor/laravel/framework/src/light/Filesystem/Filesystem.php:122中的权限被拒绝
堆栈跟踪:
我该怎么办 存储目录上的权限必须为755,确保使用-r标志递归设置权限
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/phpadm...', 122, Array)