Apache 2.4.3 (with XAMPP 1.8.1) not starting in windows 8

120,623

Solution 1

So here is the solution for this:

I check port 80 used by Skype, after that I changes port to 81 and also along with that somewhere i read this error may be because of SSL Port then I changed SSL port to 444. However this got resolved easily.

One most important thing to notice here, all the port changes should be done inside config files, for http port change: httpd.conf for SSL httpd-ssl.conf. Otherwise changes will not replicate to Apache, Sometime PC reboot is also required.

Edit: Make Apache use port 80 and make Skype communicate on other Port

For those who are struggling with Skype, want to change its port and to make Apache to use port 80.

No need to Re-Install, Here is simply how to change Skype Port

Goto: Tools > Options > Advanced > Connection

There you need to uncheck Use port 80 and 443 as alternative for incoming connections.

That's it, here is screen shot of it.

Changing Skype Port

Solution 2

I had the exact same error.

It was because i didn't run setup_xampp.bat

This is a better solution than going through config files and changing ports.

Solution 3

This problem may occur due to apache not getting required port (default is 80).

The port may be being used by other services.

For example: Skype also has default port 80.

Installing Skype and Apache both on same machine will cause conflict and hence Apache will not start.

Either, you change Skype port or change Apache port as described in following steps:

Change the ports of Apache and it will work for you. Go to httpd.conf

How to change port for Apache:

Search for:

ServerName localhost:80

Change it to:

ServerName localhost:81

Also Search For:

Listen 80

Change it to:

Listen 81

If you have created any virtual hosts, change the ports there also. Then restart your apache.

Solution 4

I had the same problem, but I understand the VMware service is the problem. VMware host service and Apache service conflict together.

To Solve it » Run your task manager » in services tab find VMwareHostd » then right click and stop it » every thing have been solved.

Solution 5

Enter services.msc and shutdown anything SQL you have running. The SQL server might be taking over the port.

Share:
120,623

Related videos on Youtube

Ishan Dhingra
Author by

Ishan Dhingra

Updated on July 22, 2022

Comments

  • Ishan Dhingra
    Ishan Dhingra almost 2 years

    Just got XAMPP 1.8.1 installed on my Windows 8 PC, this version includes packages mentioned below:

    Apache 2.4.3
    MySQL 5.5.27
    PHP 5.4.7
    phpMyAdmin 3.5.2.2
    FileZilla FTP Server 0.9.41
    Tomcat 7.0.30 (with mod_proxy_ajp as connector)
    Strawberry Perl 5.16.1.1 Portable
    XAMPP Control Panel 3.1.0 (from hackattack142)
    

    When I launched and tried to start Apache, it gave following error:

    12:04:41 PM  [Apache]   Attempting to start Apache app...
    12:04:41 PM  [Apache]   Status change detected: running
    12:04:42 PM  [Apache]   Status change detected: stopped
    12:04:42 PM  [Apache]   Error: Apache shutdown unexpectedly.
    12:04:42 PM  [Apache]   This may be due to a blocked port, missing dependencies, 
    12:04:42 PM  [Apache]   improper privileges, a crash, or a shutdown by another method.
    12:04:42 PM  [Apache]   Check the "/xampp/apache/logs/error.log" file
    12:04:42 PM  [Apache]   and the Windows Event Viewer for more clues
    

    After that I checked error.log, it was empty so no help from there.

  • Keyslinger
    Keyslinger over 11 years
    I notice that this was happening for me as, however, I couldn't run setup_xampp.bat manually either.
  • rschwieb
    rschwieb about 11 years
    Thanks, this fixed the same problem for me. I had just reinstalled Skype and so this explained a lot!
  • Manjoor
    Manjoor about 11 years
    How can SQL (be it MS SQL Server (1433) or MySQL(3306)) block (in your language take over) apache port???
  • imulsion
    imulsion about 11 years
    this fixed the problem for me too!
  • Mehul Joisar
    Mehul Joisar almost 11 years
    If problem still persists after doing above steps,just restart the computer and it will be solved.
  • Markus Knappen Johansson
    Markus Knappen Johansson over 10 years
    Thank you! Skype was my problem!
  • bethadele
    bethadele over 10 years
    I have the Skype app on Windows 8, which apparently doesn't want to let the user do anything useful. AFAIK, there's no straightforward way to set the Skype port numbers. I edited httpd.conf and httpd-ssl.conf and everything worked again.
  • Harikrishnan
    Harikrishnan over 10 years
    Thanks..It fixed my issue..+1
  • VasileF
    VasileF over 10 years
    hmm, thanks, it seemed in my case, SQL Server did took over the ports and when I stopped them, Apache server started.
  • Amal Murali
    Amal Murali about 10 years
    Yep, this is indeed the right way to go about it. +1
  • Admin
    Admin almost 10 years
    +1 . This was the one that fixed it for me! Thank you!
  • Anonymous
    Anonymous over 9 years
    never expected this to work. but it worked, nice one
  • Ipsita Rout
    Ipsita Rout over 7 years
    Could you please elaborate what you did exactly? In my case in line no 522 in httopd.conf file I get the line <IfModule proxy_html_module> . And where to get ssl module file so that I wud search line no 163? What is exactly in line no 51 of httpd-ssl.conf file in your case, because in my case it's shows a different text.
  • SparK
    SparK over 7 years
    Line 163 of httpd.conf was enabling the ssl module. But that's so long ago I don't use windows anymore. (I really recommend rolling release distros of our beloved gnu/linux os... I'm using an arch based one called Apricity OS, it's great)