我在这里需要帮助。我在我的 RHEL 8 服务器中安装了 Laravel
但我收到了这个错误。我知道这个问题已经发布了很多次,但我试图遵循这个建议,但到目前为止我没有运气。我不知道为什么。
The stream or file "/var/www/html/vpa/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied
sudo chown -R $USER:www-data storage
sudo chown -R $USER:www-data bootstrap/cache
sudo chmod -R 755 storage
sudo chmod -R 755 bootstrap/cache
sudo setenforce 0
sudo chcon -t httpd_sys_rw_content_t storage
php artisan config:clear
php artisan config:cache
composer dump-autoload
sudo systemctl restart httpd
sudo reboot
似乎没有什么对我有用。我不知道还能做什么。请帮我