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

fahdshaykh's avatar

laravel not running on server

hello to everyone i have cpanel server on the root is some corephp file that showing some static data page. url is ------------ https://hilike-chat.com/contact.php on this domain i have a folder name vroad which is laravel project running the url is --------- https://hilike-chat.com/vroad/public/login

my issue is i have created the same folder like vroad but different name with vroaddev everythings is same like vroad folder. but when try to reach on this link -------- https://hilike-chat.com/vroaddev/public/login

it gives error : You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

0 likes
10 replies
davy_yg's avatar

Have you map the web link in routes in web.php ?

Tray2's avatar

You need to fix the document root, and create a new virtual host

1 like
Snapey's avatar
Snapey
Best Answer
Level 122

Suggest you take the service off line IMMEDIATELY and change all your credentials.

Publishing the whole project allows anyone to access the .env file, eg

DB_USERNAME=admin_hilike
2 likes
fahdshaykh's avatar

@Snapey I did not understand your statement about

DB_USERNAME=admin_hilike

and how did you get to know about my env file db username?

Sinnbeck's avatar

@fahadsheikh303 remove everything in the url from the right until you get to /vroad/

Then add .env and hit enter. I will not post a link to it as Google will index it

Also change your passwords now! And remove the env until you fix it

1 like
Snapey's avatar

can't believe you have left all your credentials (the entire .env) online for so long after getting advice

1 like
Sinnbeck's avatar

@Snapey Indeed! Pretty sure that someone with malicious intend has already found it by now (or will soon). Hope @fahadsheikh303 will get it taken down soon and change ALL passowords/keys

1 like

Please or to participate in this conversation.