XAMPP: Couldn't start Apache (Windows 10)

前端 未结 25 1966
长情又很酷
长情又很酷 2020-11-30 19:26

I\'m using XAMPP, and I can start Apache, but, MySQL (phpMyAdmin) start!

When I start, I get this error;

10:07         


        
相关标签:
25条回答
  • 2020-11-30 19:33

    I have fixed this issue with mine as well, but I had to change a couple of things. I require that on my Windows 10 machine I keep my C# and Visual Studio development environment, so I didn't want to tinker with any services. All I had to do was download the latest version of XAMPP and change the listening ports for 80 and 443. They were located in two files:

    C:\xampp\apache\conf\httpd.conf

    Listen 122
    ServerName localhost:122
    

    C:\xampp\apache\conf\extra\httpd-ssl.conf

    Listen 444
    

    Changing the above from port 80 to 122 and 443 to 444 allowed me to have Apache run and serve pages while keeping everything else the same for my ASP.NET development. Hopefully this helps someone out there. In the end this is a very simple fix.

    Direct your browser to: http://localhost:122

    0 讨论(0)
  • 2020-11-30 19:33

    It looks like there are many options. The answer depends on your Windows installation. Here is my experience when having the same problem in a Windows 10 fresh install and fix the issue with the following step:

    1. Install Visual C++ Redistributable
    2. Open XAMPP and select configure in the Apache service
    3. Change the port 80 to 9000 or 81 or whatever you want in file httpd.conf on the line Listen 80
    4. Change the port on httpd-ssl.conf and change Listen 443 to Listen 441
    5. Restart XAMPP and start the Apache service. It works for me.

    Note: I'm using XAMPP version 5.6.15 and XAMPP Control Panel version 3.2.2.

    0 讨论(0)
  • 2020-11-30 19:33

    It's simply a matter of making port 80 available for your Apache service. The way I solved the problem was:

    1. On Windows 10, right click the start button and select Run
    2. Type services.msc and click OK
    3. Find and right click World wide web publishing service
    4. Select Properties
    5. Change the Startup type value to Automatic (Delayed Start)
    6. Restart your computer.

    There you have it. All is back to normal.

    0 讨论(0)
  • 2020-11-30 19:37

    Steps:

    • Open the XAMMP Control Panel
    • Open Apache Config, and then select the Apache - xammp- configuration file
    • Search for "Port 443", and then change it to some other port, let’s say 4433
    • Then restart.
    0 讨论(0)
  • 2020-11-30 19:37

    Check if your PHP installation works.

    Check which php.ini file you are running in Apache's configuration and use it to run php.exe...

    0 讨论(0)
  • 2020-11-30 19:38
    • Go to the start menu, and type Turn Windows features on or off
    • Uncheck Internet Information Services
    • Press OK
    0 讨论(0)
提交回复
热议问题