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

Sauravkc's avatar

Laravel on shared hosting

I uploaded my laravel project on cpanel then moved everything from public to root folder (also edited the index file). I'm using Intervention for image upload, the image are uploaded but are now showing in the website.

0 likes
4 replies
mikevrind's avatar

I assume you mean that the uploaded images aren't showing. But please read your own post and ask yourself, could I help someone who only provides this information without having any knowledge about the project?

How about telling us what happens when the image fails to load. Do you get an 404 or maybe a 500 error? Can you find the uploaded images in the location where the server tries to load them?

Sauravkc's avatar

@mikevrind turns out after i move all my folders outside of public folder, new files are still being uploaded in the public folder.

mikevrind's avatar

So you probably missed something when you decided to move the public folder. Can't you just change your document root to the public folder using cPanel?

Sauravkc's avatar

I have already solved the problem by using htaccess file to point it the public folder.Anyway thank you for your answer

Please or to participate in this conversation.