skip to Main Content

Apache24/conf/httpd.conf:
Port Listen 8080
I have added the php 8 module
index.php set

enter image description hereenter image description here

I have set everything and tried port :80 and :8080, both doesn’t work, what am I missing?

2

Answers


  1. Chosen as BEST ANSWER

    It worked properly now.

    steps on how it worked

    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. I think you should check your computer process.

    Below are the process check command

    # for window
    tasklist | findstr "httpd"
    
    # for linux
    ps -ef|grep httpd
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search