Windows could not start the Apache2 on Local Computer - problem

后端 未结 20 2155
-上瘾入骨i
-上瘾入骨i 2020-12-12 11:27

During the installation of Apache2 I got the following message into cmd window:

Installing the Apache2.2 service The Apache2.2 service is successful

相关标签:
20条回答
  • 2020-12-12 12:05

    Windows 10 - administrator account

    I needed to switch the account to an admin type account, in windows services

    httpd.exe -k install
    

    fails to add setup with enough user rights.

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

    Run the httpd.exe from the command line, as Tim mentioned. The path to PostgreSQL changed, nothing else was running on Port 80 and I didn't see anything in the error.log file.

    I clone my boot drive/partition once the base is setup so I don't have to spend three days installing and retweaking everything. Turns I had reinstalled my WAPP stack and used very specific names/versions for PostgreSQL. Windows will not return a specific error message unless you run the command from the command line.

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

    the better way to resolve the issue is change the port number in Apache2\conf\httpd.conf . Change the port number as fallows::: Listen 8888 and ServerName machinename:8888 .Restart the Apache server after changing the port number.

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

    I hope this helps others with this error.

    Run the httpd.exe from the command line to get an accurate description of the problem.

    I had the same error message and it turned out to be a miss configured ServerRoot path. Even after running setup_xampp.bat the httpd.conf had the wrong path.

    My error.log was empty and starting the service does not give an informative error message.

    0 讨论(0)
  • 2020-12-12 12:11

    There is some other program listening on port 80, usual suspects are

    1. Skype (Listens on port 80)
    2. NOD32 (Add Apache to the IMON exceptions' list for it to allow apache to bind)
    3. Some other antivirus (Same as above)

    Way to correct it is either shutting down the program that's using the port 80 or configure it to use a different port or configure Apache to listen on a different port with the Listen directive in httpd.conf. In the case of antivirus configure the antivirus to allow Apache to bind on the port you have chosen.

    Way to diagnose which app, if any, has bound to port 80 is run the netstat with those options, look for :80 next to the local IP address (second column) and find the PID (last column). Then, on the task manager you can find which process has the PID you got in the previous step. (You might need to add the PID column on the task manager)

    C:\Users\vinko>netstat -ao -p tcp

    Conexiones activas
    
      Proto  Dirección local          Dirección remota        Estado           PID
      TCP    127.0.0.1:1110         127.0.0.1:51373        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51379        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51381        ESTABLISHED     388
      TCP    127.0.0.1:1110         127.0.0.1:51382        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51479        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51481        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51483        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51485        ESTABLISHED     388
      TCP    127.0.0.1:1110         127.0.0.1:51487        TIME_WAIT       0
      TCP    127.0.0.1:1110         127.0.0.1:51489        ESTABLISHED     388
      TCP    127.0.0.1:51381        127.0.0.1:1110         ESTABLISHED     5168
      TCP    127.0.0.1:51485        127.0.0.1:1110         ESTABLISHED     5168
      TCP    127.0.0.1:51489        127.0.0.1:1110         ESTABLISHED     5168
      TCP    127.0.0.1:59264        127.0.0.1:59265        ESTABLISHED     5168
      TCP    127.0.0.1:59265        127.0.0.1:59264        ESTABLISHED     5168
      TCP    127.0.0.1:59268        127.0.0.1:59269        ESTABLISHED     5168
      TCP    127.0.0.1:59269        127.0.0.1:59268        ESTABLISHED     5168
      TCP    192.168.1.34:51278     192.168.1.33:445       ESTABLISHED     4
      TCP    192.168.1.34:51383     67.199.15.132:80       ESTABLISHED     388
      TCP    192.168.1.34:51486     66.102.9.18:80         ESTABLISHED     388
      TCP    192.168.1.34:51490     74.125.4.20:80         ESTABLISHED     388
    

    If you want to Disable Skype from listening on port 80 and 443, you can follow the link http://www.mydigitallife.info/disable-skype-from-using-opening-and-listening-on-port-80-and-443-on-local-computer/

    0 讨论(0)
  • 2020-12-12 12:11

    Thanks for the help guys. I found another culprit. Recently SimplifyMedia added a photo sharing option. Apparently it too uses port 80 and prevented Apache from starting up. I hope this helps someone out.

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