Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

laracoft's avatar

@hekmatyar Can you verify and confirm you are following this exactly?

www                 <- Laravel root folder
├── app
├── public          <- http://localhost/
│   └── storage     <- http://localhost/storage links to <──┐
├── vendor                                                  │
...                                                         │
└── storage                                                 │
    └── app                                                 │
        └── public  <───────────────────────────────────────┘

When you put /home/domain/www/public/image.png what is the URL you are loading it with?

laracoft's avatar

@hekmatyar you need to pay closer attention, I'm about 10 messages from stepping away for good.

  1. Which folder is http://localhost pointing to?
  2. What is the URL you use to load /home/domain/www/public/image.png?
Hekmatyar's avatar

really im tired.. couple days without sleep. how you want to confirm it? (structure/symlink)

  1. env saytome: https://mydomain.com - im using rewriterule to load index.php in '/' from 'public/index.php'
  2. /public/image.png is work
laracoft's avatar
  1. Which folder is your domain pointing to? (Check in the HTTP server or ask your shared hosting)
  2. What is the URL you use to load /home/domain/www/public/image.png? (You must know this, you told me the image loaded properly earlier)

9 messages left.

Hekmatyar's avatar

1.www i said it 4 times in this topic

2.404 because i dont have dir like this

laracoft's avatar

Let's try again

  1. Which folder is your domain pointing to? (Check in the HTTP server or ask your shared hosting)
  2. What is the URL you use to load /home/domain/www/public/image.png? (You must know this, you told me the image loaded properly earlier)

8 messages left.

laracoft's avatar
  1. I have made it extremely clear you need to point your domain to /home/domain/www/public/, please fix.
  2. You say "/public/image.png is work", so what is the URL?

7 messages left.

Hekmatyar's avatar

I appreciate you wanting to help me but you are not helping at all and stop wasting my time on your games..

laracoft's avatar

The fix is to point your domain to /home/domain/www/public/.

I asked for URL, you gave me a folder public/image.png.

I asked for full folder path, you give me a short www.

You have do to your part and help yourself. I'm out of here.

Hekmatyar's avatar

I was take it all from sharehosting and deploy in localhost changing only .env, and when i start generate links, all images work but not in sharedhost.

Today host send me logs with errors: " AH00037: Symbolic link not allowed or link target not accessible: /homez.269/domain/www/public/storage"

jlrdw's avatar

just serve from under webroot then. Under www just make an images folder, and serve your images.

Hekmatyar's avatar

i changed location of storage to other folder and everything is work (filesystem.php)

moumene's avatar

@Hekmatyar please, same problem, need help,explicitely how did u change the location of storage to other folder :"Wich one" , if u can an image of the filesystem.php , thank u.

Previous

Please or to participate in this conversation.