Asking for admin permissions in Windows using bash script

I’m trying to alter my hosts file in Windows using a bash script. It looks like this: echo "<ip_address> <replacement>" >> C:\\Windows\\System32\\drivers\\etc\\hosts It looks like I need admin permissions, how can I get those? I tried this, but it didn’t work either. cd C:\\Windows\\System32\\drivers\\etc chmod +x hosts echo "<ip_address> <replacement>" >> C:\\Windows\\System32\\drivers\\etc\\hosts Result chmod: changing… Read More Asking for admin permissions in Windows using bash script

Using built-in PHP server can't access localhost site that use custom domain name specified in etc/hosts

Actually already asked my question in the title. What I’ve done: Installed PHP 8, and set path to it in env. var. Changed file C:\Windows…\etc\hosts and added lines to it: 127.0.0.1 astrononeko.dev 127.0.0.1 http://www.astrononeko.dev ::1 astrononeko.dev ::1 http://www.astrononeko.dev In cmd used ipconfig /flushdns 4) Then created directory C:\Projects\Web\php and file index.php. There is regular Hello… Read More Using built-in PHP server can't access localhost site that use custom domain name specified in etc/hosts