Bagisto Forum

    Bagisto

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

    Impossible to create the root directory at product image upload

    Bug Report
    2
    6
    1848
    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.
    • J
      Javoke last edited by Javoke

      alt text

      Some permission problem? However, on github someone recommended to unlink public folder from storage and then link back, it helped at first, with initial product upload(without photo). Someone?

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @Javoke

        Please follow this one - https://github.com/bagisto/bagisto/issues/826

        and if unable to solve using above, try below -

        run -
        chown -R www-data:root .

        in the root of directory.

        Thanks

        J 1 Reply Last reply Reply Quote 0
        • J
          Javoke @rahul last edited by Javoke

          Hi, @rahul

          I tried to this solution from github, it helped at first but doesn't work when I'm adding an image.
          Tried your command , it returned another error alt text

          had to change back : $ sudo chown -R (user): .
          Any other ideas, or I did something wrong?

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by

            Hi,

            First run this command -

            chmod -R 777 ./storage

            then run

            chown -R www-data:root .

            Thanks

            1 Reply Last reply Reply Quote 0
            • J
              Javoke last edited by

              Thanks @rahul, but the problem is still remaining.

              1 Reply Last reply Reply Quote 0
              • R
                rahul last edited by rahul

                Hi @ppstech

                Please run following -

                From root of your project -

                cd public
                unlink storage
                

                From Root of Your Project

                php artisan storage:link 
                

                Thanks

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