Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

ERR_CONNECTION_REFUSED after transferring site from hosting to localhost

Started by Dima 2 years ago · 3 replies · 518 views
2 years ago

I'm trying to move my Grav site from hosting to localhost. I copied all the files, but when accessing the site, I get ERR_CONNECTION_REFUSED.

I've tried:

Copying just the 'user' directory

Changing the URL custom_base_url: 'http://localhost' in system.yaml.

The only progress is 404 errors when navigating to pages that don't exist, like: http://localhost:8005/no-such-page. All other URLs (which really should be on the site) give the error ERR_CONNECTION_REFUSED.

What else should I check to get the local site working? Thanks for any help!

last edited 12/08/24 by Dima
2 years ago

That's way too little information to even start suggesting anything. You didn't mention a word about your setup. That's most likely not even a Grav issue

Please read this post
/forum/general/the-art-of-asking-great-questions-t8554

2 years ago

It is clear that the issue is not in Grav, but in me:). And I realize that I have to change something just a little bit in some files. But I don't understand in which files and what exactly. The evening spent with AI in search of a solution to this problem did not give any results.

I guess the question can be formulated as follows: how do the settings of a hosted site differ from those of a localhost site?

2 years ago

Based on what you said, it's either .htaccess or your server setup. Otherwise I've no idea

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago