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
    1777
    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

      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

        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 Reply Quote 0
        • E
          ehdava @rahul last edited by

          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

            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 Reply Quote 1
            • E
              ehdava @rahul last edited by

              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

                Hi @ehdava

                ok.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post