• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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
1.9k
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 12 Jul 2019, 08:42 12 Jul 2019, 08:33

    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 12 Jul 2019, 10:59

      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 12 Jul 2019, 12:29 Reply Quote 0
      • J
        Javoke @rahul last edited by Javoke 12 Jul 2019, 12:30 12 Jul 2019, 12:29

        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 12 Jul 2019, 13:45

          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 12 Jul 2019, 14:36

            Thanks @rahul, but the problem is still remaining.

            1 Reply Last reply Reply Quote 0
            • R
              rahul last edited by rahul 19 Jul 2019, 10:56 19 Jul 2019, 10:56

              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
              4 out of 6
              • First post
                4/6
                Last post