Laravel 4: Failed to open stream: Permission denied

前端 未结 6 1831
南笙
南笙 2020-12-02 09:37

I\'m having problem in setting up Laravel 4. I\'m having this error when opening the index page:

file_put_contents(/Users/laravel/app/storage/meta/ser

6条回答
  •  暖寄归人
    2020-12-02 10:02

    If you are using Apache on Ubuntu, storage and bootstrap/cache folders need to be writable by web server user.

    sudo chgrp -R www-data storage bootstrap/cache
    sudo chmod -R ug+rwx storage bootstrap/cache
    

    This will allow write permissions to these folders for web server users.

提交回复
热议问题