My installation is bloked at updating host file 75%

all in the title.
i done all the autorisations to write the file.
can i change the host file myself with the code instead ?
and what is the code ?

Dealing with the same issue, have been digging pretty far into it over here: Can't connect to database DK0033 - #18 by cphollingdale

1 Like

If you’re editing the host file yourself, it just needs the following: website.local
::1 website.local

The thread linked to above may provide steps that can be looked into if you’re running Windows. It’s possible that the host file is blocked on your machine from being able to edit.

Hello, I’m having the same problem:

Host File update failed. DK0022
When install a new site he’s blocked at 75%
When retry its gives the same error.

I’m working on Windows 10 Home
Host file read only is unchecked
We did also some modifications in the anti-virus

With Local wp I was having the same problem, an eprm error with the host file, so I’ve switched for DevKinsta in the hope this wil work.

I am new to WordPress and want to try things out, so I love to get DevKinsta working.
Thanks a lot

Hi Lien, welcome to DevKinsta, we’re glad to have you!

Can you edit your hosts file normally with a text editor like notepad and save the changes?
Do the changes you make stay when you open the file again?

I’ve put the following rules as suggested above and after saving, closing, reopening they are still there. website.local
::1 website.local

Try this:

When you first run DevKinsta, right-click on it and click ‘run as administrator’.

Let me know how that works.

Still the same error

When checking the host file, its was set again on read only.

I can’t reply anymore so I put it here,
Hope You will see it


No error output.
The Hosts file has been updated with: #### This is a test file insert

Can you try opening up a privileged (ran as administrator) command prompt and run the following command?

echo #### This is a test file insert >> C:/Windows/System32/drivers/etc/hosts & echo.

That should insert a line into your hosts file or output an error we can hopefully diagnose.

I have same problem. I echoed with CMD and got text inserted in hosts file without output of errors. ( ).
I tried to open DevKinsta with administrator privileges but same problem it stops at 75% and can’t modify hosts file. ( ).
I added manually what DevKinsta tries to add itself and made site accessible in browser but problem is that DevKinsta app is trying to modify hosts file and doesn’t allow clicks in the app.