error running apache after xampp install

后端 未结 6 1876
难免孤独
难免孤独 2020-12-05 23:50

I installed xampp on win7 and get this error when starting apache. I unchecked skype and nothing changes. How do I find what is using port 80? How do I fix this please. I do

相关标签:
6条回答
  • 2020-12-06 00:06

    Try those methods, it should work:

    • quit/exit Skype (make sure it's not running) because it reserves localhost:80
    • disable Anti-virus (Try first to disable skype and running again, if it didn't work do this step)
    • Right click on xampp control panel and run as administrator
    0 讨论(0)
  • 2020-12-06 00:07

    www.example.com:443:0 server certificate does NOT include an ID which matches the server name

    I was getting this error when trying to start Apache, there is no error with Apache. It's an dependency error on windows 8 - probably the same for 7. Just right click and run as Admin :)

    If you're still getting an error check your Antivirus/Firewall is not blocking Xampp or port 443.

    0 讨论(0)
  • 2020-12-06 00:07

    After changing main port from 80 to 8080 you have to change the config in XAMPP control panel as I show in the images:

    1)

    2)

    3)

    Then restart the service and that's it !

    0 讨论(0)
  • 2020-12-06 00:09

    I had the same problem, I solved changing the ports.

    -> Clicked button Config front of Apache.
    1) Select Apache (httpd.conf)
    2) searched for this line: Listen 80
    3) changed for this: Listen 8081
    4) saved file
    -> Click Config button front of Apache.
    1) Select Apache (httpd-ssl.conf)
    2) searched for this line: Listen 443
    3) changed for this: Listen 444
    4) saved file
    I can run xammp from port 8081
    http://localhost:8081/
    You have to give port number you gave to enter the localhost
    Hope this helps you to understand what is happening.

    0 讨论(0)
  • 2020-12-06 00:09

    I think killing the process which is uses that port is more easy to handle than changing the ports in config files. Here is how to do it in Windows. You can follow same procedure to Linux but different commands. Run command prompt as Administrator. Then type below command to find out all of processes using the port.

    netstat -ano
    

    There will be plenty of processes using various ports. So to get only port we need use findstr like below (here I use port 80)

    netstat -ano | findstr 80
    

    this will gave you result like this

    TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       7964
    

    Last number is the process ID of the process. so what we have to do is kill the process using PID we can use taskkill command for that.

    taskkill /PID 7964 /F
    

    Run your server again. This time it will be able to run. This can uses for Mysql server too.

    0 讨论(0)
  • 2020-12-06 00:18

    I got the same error when xampp was installed on windows 10.

    www.example.com:443:0 server certificate does NOT include an ID which matches the server name

    So I opened httpd-ssl.conf file in xampp folder and changed the following line

    ServerName www.example.com:443
    

    To

    ServerName localhost
    

    And the problem was fixed.

    0 讨论(0)
提交回复
热议问题