Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

ERR_CONNECTION_REFUSED after transferring site from hosting to localhost

Started by Dima 2 years ago · 3 replies · 73 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago