简体   繁体   中英

Laravel permission denied Centos 7

I installed laravel 4.2 and i ended up with this error

file_put_contents(/var/www/html/laravel4/app/storage/meta/services.json): failed to open stream: Permission denied

I figured services.json dosent exist but when i do

php artisan up

The error changes to

Error in exception handler: The stream or file "/var/www/html/laravel4/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/laravel4/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87

I tried giving permessions to the storage and the vendor folders but nothing seems to be changing

php artisan cache:clear
chmod -R 777 app/storage
composer dump-autoload

I tried to give permession by doing this command

setsebool -P httpd_unified 1 

I even deleted the project and created multiple copies from scratch nothing seems to be working help me i'm feeling so lost.

我正在使用Vmware Vsphere来访问服务器,访问从那里受到限制:(最终通过从那里提供访问,它起作用了

如果您正在使用Vmware Vsphere访问服务器,则应授予它访问权限以执行此操作。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM