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

Hamelraj's avatar

How to set root path in Shared hosting ?

i try to host my laravel application in www.bytehost.com they are providing install Laravel frame work BUT WHEN I TRY TO RUN fresh application its saying ERROR 500 check the image link below i changed root path in index.php like this but same error can anyone help on this ??

require __DIR__.'/../laravel/bootstrap/autoload.php';

$app = require_once __DIR__.'/../laravel/bootstrap/app.php';

https://drive.google.com/file/d/0ByoLPyyQ3jAjVUtYN3p3MF85ODQ/view?usp=sharing https://drive.google.com/file/d/0ByoLPyyQ3jAjYXAxRF9EUEJUMms/view?usp=sharing

later i will get error like this

Server error

500
ReloadHide details
The website encountered an error while retrieving http://prudential.byethost31.com/laravel/public/. It may be down for maintenance or configured incorrectly.
0 likes
5 replies
Hamelraj's avatar

@@@@@@@@ NO Reply .........................

kossa's avatar

Hi, you should chmod the storage forlder to 777 ;)

Snapey's avatar

There are too many things it could be.

Personally I would never go with a packaged deployment because it could be who knows how old, and not configured correctly.

What does the directory structure look like?

Have you registered a domain name and pointed it at this host (accessing their temporary URL will never work)?

Hamelraj's avatar

@Snapey im using free hosting for developments for testing purpose after that only i can move to premium and im using https://byet.host/ they have a in build Laravel frame work we can install even thtz not working after the installation now no errors only blank page :(

Please or to participate in this conversation.