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

ashoor's avatar

500 SERVER ERROR no log on shered hosting

Hi,

i i get this error "500 SERVER ERROR" when i put public foldesr's files in public_html and change path in index.php like

DIR.'/../foldername/storage/framework/maintenance.php

and put others folders and files in folder in root path

and i tested an image from publicfolder successfly

what is the problem

thanks

0 likes
1 reply
Snapey's avatar

problem is that you put your project inside public_html. Put your project one level ABOVE public_html and then delete public_html and recreate it as a symlink to the project's public folder.

2 likes

Please or to participate in this conversation.