Legend: IPv4Address: 192.168.1.5 it should be different on your machine
cmd>ipconfig
copy IPv4Address
open Apache24/config/httpd.conf
line 59: Listen IPv4Address:8000
line 60: Listen 8000
line 218: ServerName IPv4Address:8000
save file
cmd> cd C:Apache24bin
cmd>./httpd for me httpd without ./httpd didn't work for some reason
refresh http://localhost:8000 or http://IPV4Address:8000 and it should work!
I think because I had run cmd>npm run dev ports 80 and 8080 were taken (although the server is offline now), luckily port 8000 is free.
Thanks @JamesYoung
2
Answers
It worked properly now.
steps on how it worked
Legend: IPv4Address: 192.168.1.5 it should be different on your machine
cmd>ipconfig
Listen IPv4Address:8000
Listen 8000
ServerName IPv4Address:8000
cmd> cd C:Apache24bin
cmd>./httpd
for me httpd without ./httpd didn't work for some reasonI think because I had run
cmd>npm run dev
ports 80 and 8080 were taken (although the server is offline now), luckily port 8000 is free.Thanks @JamesYoung
I think you should check your computer process.
Below are the process check command