• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

error on live server The stream or file "/var/www/html/wkwk/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

Bug Report
2
6
2.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    ehdava last edited by 20 Dec 2019, 08:25

    i've done all the installation of bagisto on my live server

    already did php artisan vendor:publish too

    and it throws an error at browser like this

    The stream or file "/var/www/html/wkwk/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
    

    how do i fixed this?

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 20 Dec 2019, 08:30

      Hi @ehdava

      Please run folowing commands at root of your project.

      sudo chown -R $USER:www-data storage sudo chown -R $USER:www-data bootstrap/cache
      

      Thanks

      E 1 Reply Last reply 20 Dec 2019, 08:37 Reply Quote 0
      • E
        ehdava @rahul last edited by 20 Dec 2019, 08:37

        hi @rahul said in error on live server The stream or file "/var/www/html/wkwk/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied:

        sudo chown -R $USER:www-data storage sudo chown -R $USER:www-data bootstrap/cache

        yes, i've done it and it still return f68aad16-544c-4dc3-9be0-20b53326e1ba-image.png the same error

        1 Reply Last reply Reply Quote 0
        • R
          rahul last edited by 20 Dec 2019, 08:58

          Hi @ehdava

          Please run this one at root of your project.

          sudo chown -R $USER:www-data storage
          chmod -R 775 storage
          

          Note - Use your user.

          Thanks

          E 1 Reply Last reply 20 Dec 2019, 09:21 Reply Quote 1
          • E
            ehdava @rahul last edited by 20 Dec 2019, 09:21

            hi @rahul,

            it works with 750 for root project and 770 for storage

            1 Reply Last reply Reply Quote 0
            • R
              rahul last edited by 20 Dec 2019, 09:25

              Hi @ehdava

              ok.

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post