HOSTS file not getting updated


  • | 1145 points

    Laragon Version 5.0 running on Windows 10.

    Is this maybe a permissions error? Right now I need to add newly created sites manually to the Windows HOSTS file.


  • administrators
    | 132054 points

    @billiemead This link may help:
    https://forum.laragon.org/topic/39/not-able-to-enable-auto-create-virtual-hosts/16

    Please check @dudasnandor solution:
    Hello, i have one tip.

    I create a group (net localgroup GROUPNAME /add), then i add new user to the group (net localgroup GROUPNAME USERNAME /add). Last i add permissions to the files or folders (icacls FILE_OR_PATH /grant GROUPNAME:f /q).

    
    
    net user /add DeveloperName *
    net localgroup DevelopersGroup /add
    net localgroup DevelopersGroup DeveloperName /add
    icacls "C:\Windows\System32\drivers\etc\hosts" /grant DevelopersGroup:f /q
    icacls "C:\laragon" /grant DevelopersGroup:f /q
    
    
    

Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.