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

distantplanet's avatar

Index of / (phpinfo.php only file listed) - Laravel 5/Forge/Digital Ocean

I'm deploying a Laravel 5 site for the first time using Forge and Digital Ocean and have been running into some difficulties...

The page was working when i first set it up and then without changing anything it started displaying a page that only says:

Index of / and the only file listed is phpinfo.php

when i ssh into my Digital Ocean server i see all the files are there

i'm also able to connect to the database with sequalPro so it seems like it's deploying ok?

any help would be appreciated, thanks!

UPDATE: it's worked intermittently. after only seeing the index of / page for a few hours it started showing my page again for a couple minutes but with some issues with images not loading (when i refresh a couple times the show up)

0 likes
4 replies
jaewun's avatar
jaewun
Best Answer
Level 4

Sounds like your DNS might be screwed. Are you accessing via a domain name? Is it possible you have two A records?

distantplanet's avatar

Thanks! that pointed me in the right direction, definitely a DNS issue...got it sorted out

chris_boudreaux's avatar

What was the DNS issue? I am having this problem but don't know how to fix.

Thanks!

MT's avatar

Having the same issue, how did you fix it? please help!

1 like

Please or to participate in this conversation.