Apache In XAMP is not working ! ! - apache

I keep getting the same error, I've tried changing the port via 'httpd.conf' many times, but it was useless, it keeps giving me this error. Any help is appreciated;
7:13:51 PM [Apache] Error: Apache shutdown unexpectedly.
7:13:51 PM [Apache] This may be due to a blocked port, missing dependencies,
7:13:51 PM [Apache] improper privileges, a crash, or a shutdown by another method.
7:13:51 PM [Apache] Check the "/xampp/apache/logs/error.log" file
7:13:51 PM [Apache] and the Windows Event Viewer for more clues

Apache needs to use default ports 80 (HTTP) and 443 (HTTPS / SSL), you have two options, either you change the port number used by apache or disable services that your system is using those ports. I propose a solution that works on windows 7.
you must disconnect the microsoft IIS server that listens on port 80 by default for this do the following:
-accesses the command line CMD in administrator mode
writes: net stop was
-will you answer yes
-you will answer a confirmation that the IIS has been disconnected
And you can start apache on port 80
You may also have busy port 443 for another service your system for it through the control panel in the xampp apache config button choose .. Apache (httpd-ssl.config) and you replace occurrences of the number 443 by any other number, 444 for example, is only necessary in the lines that are not comments (comment lines starting with #)

There are many reasons for this problem ..One of the main thing for this problem is about the port.If you are running another program like skype etc which is blocking port 80 or 443. then you've found your problem! Change apache's port settings to 81 and apache will work

Related

which port is proper to start apache except port:80?

I've just installed XAMPP. Apache doesn't start because of the blocked ports.I deactivated apps and services which use port 80 but it didn't work. at last, I set it to listen on port :8080 ( through httpd.conf) but it still repeated that error:
Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
now I guess i may set it to another port but dont know which?

XAMPP -> Apache not starting

I returned the port to 80 from 8080 and now the apache is not starting. I reverted all of the things that needs to be back like 80 and 443.
12:53:41 PM [Apache] Error: Apache shutdown unexpectedly.
12:53:41 PM [Apache] This may be due to a blocked port, missing dependencies,
12:53:41 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:53:41 PM [Apache] Press the Logs button to view error logs and check
12:53:41 PM [Apache] the Windows Event Viewer for more clues
12:53:41 PM [Apache] If you need more help, copy and post this
12:53:41 PM [Apache] entire log window on the forums
And i already disabled iis as well.
Please confirmed that in your machine skype is installed or not.
if it is installed then change port of skype. due to port conflicted apache might not be starting.
i change port in httpd.conf to 8080 and use this url:http://localhost:8080/ and it work correct.
for change port change listen.
-------------------------------------------- httpd.conf --
Listen 8080
The following worked for me
Select "Run as administrator"
Click on the left checkbutton next to Apache
And finally Uninstall Apache
And in my case that worked! And I tried a lot of different options

XAMPP - Port 80 in use by "Unable to open process" with PID 12448

I got this problem, and I can't find the solution on web
21:51:01 [Apache] Problem detected!
21:51:01 [Apache] Port 80 in use by "Unable to open process" with PID 12448!
21:51:01 [Apache] Apache WILL NOT start without the configured ports free!
21:51:01 [Apache] You need to uninstall/disable/reconfigure the blocking application
21:51:01 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
21:51:01 [Apache] Problem detected!
21:51:01 [Apache] Port 443 in use by "Unable to open process" with PID 12448!
21:51:01 [Apache] Apache WILL NOT start without the configured ports free!
21:51:01 [Apache] You need to uninstall/disable/reconfigure the blocking application
21:51:01 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
21:51:01 [Apache] Attempting to start Apache app...
21:51:02 [Apache] Status change detected: running
21:51:03 [Apache] Status change detected: stopped
21:51:03 [Apache] Error: Apache shutdown unexpectedly.
21:51:03 [Apache] This may be due to a blocked port, missing dependencies,
21:51:03 [Apache] improper privileges, a crash, or a shutdown by another method.
21:51:03 [Apache] Press the Logs button to view error logs and check
21:51:03 [Apache] the Windows Event Viewer for more clues
21:51:03 [Apache] If you need more help, copy and post this
21:51:03 [Apache] entire log window on the forums
Its PID 12448, not PID 4 !!! How to solve it ?
P.S
It's no problem after just download the xampp, then I install Joomla! and get this problem...
In addition to the things to fix mentioned by RepeaterCreeper, on a windows machine you can find the application (executable) by process id:
netstat -a -b -o
tasklist | findstr /C:"<pid>"
The first command will list all the processes, PIDs, associated process executable name. The second command will find the executable name by PID
More help on usage:
netstat /?
tasklist /?
To save the results to a file for the commands, use "> file.txt" switch. E.g.:
tasklist | findstr /C:"2342" > t.txt
The above command will save the output to a file named "t.txt" in current folder. Stop those processes if possible. Or else, configure XAMPP to use a different port in the configuration dialog.
Okay so the problem is that port 80 is by default being used by a service that is installed by default into Windows 10. So what you need to do is turn that off. I'll go over them step by step on how to do this down below.
Press Window + R.
Type in the run box "services.msc".
Now scroll down near the bottom you will see "World Wide Web ... " (I don't know the fully name so just look for something like 'World Wide Web').
Now you'll see that it is set on AUTOMATIC as the startup type or whatever it was. Double click or right click and you will see a dialog box pop up.
Press the STOP button to turn off the service.
OPTIONAL
Change it to MANUAL as the startup type.
Now that's out of the way restart your computer if necessary (But I think you don't need it, however I would recommend it since I'm not sure whether it needs to be restarted or not). And once you've done that run XAMPP as an administrator by simply right clicking and pressing Run as Administrator and that should work. If it doesn't then I don't know how to help you. That was the way I did it when I was having this problem.
NOTE: Skype may also be a problem as pointed out in the comments. If you have skype please following the following.
Open up Skype.
Go to Options
Go to Connections
Then you'll see a check-box that is labeled "Use Port 80 or 443 as an alternative for incoming connections.".
Tick that box and restart your Skype then turn it off.
In Xampp control, click config, open Apache config file (httpd.conf) and set
Listen 80 to Listen 8080 or some port of your choice, stop / start the apache process and it'll resolve the conflict.
If you wish Apache to listen to port 80 only, you will need to stop conflicting Application or configure that app to use another port.

apache not running XAMPP

I am using Bitnami XAMPP on windows 7. It has been more than a year i'm using, but today all of a sudden it is showing Apache shutdown unexpectedly error.
Attempting to start Apache app... 9:43:46 PM [Apache] Status change
detected: running 9:43:47 PM [Apache] Status change detected:
stopped 9:43:47 PM [Apache] Error: Apache shutdown unexpectedly.
9:43:47 PM [Apache] This may be due to a blocked port, missing
dependencies, 9:43:47 PM [Apache] improper privileges, a crash, or
a shutdown by another method. 9:43:47 PM [Apache] Press the Logs
button to view error logs and check 9:43:47 PM [Apache] the Windows
Event Viewer for more clues 9:43:47 PM [Apache] If you need more
help, copy and post this 9:43:47 PM [Apache] entire log window on
the forums
Please note that Skype is not running, and i even tried changing the port to 81 by editing httpd.conf. Still I have unchecked "use port 80 and 443 or additional incoming connections"
After changing port number to 81 I went to Command prompt and used command
netstat -nab
I did not get any applications using port 81. I'm done restarting XAMPP and my computer.
Have you tried changing the port using the Xampp Control Panel?
Bitnami developer here.
It seems related to a blocked port. Try to change from the XAMPP Control Panel the both http and https ports in all the Apache configuration files.
To do that, press Config on the Apache section, and change the ports in httpd.conf and httpd-ssl.conf
You need also change the service port: Config (button on the right corner) -> Service and Ports Settings.
Click Netstat button if you want to see the currently used ports.
I hope it helps
David

How do I change the port WWAHOST.EXE is using so I can run my Apache

So when I open my XAMPP and try to run Apache, it says
5:40:08 PM [Apache] Problem detected!
5:40:08 PM [Apache] Port 443 in use by "C:\windows\syswow64\wwahost.exe" with PID 6744!
5:40:08 PM [Apache] Apache WILL NOT start without the configured ports free!
5:40:08 PM [Apache] You need to uninstall/disable/reconfigure the blocking application
5:40:08 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
I've gone into my Apache files and tried to change the port to 8080 but it doesn't seem to work. I have gone in to both files, httpd and httpd-ssl. Please Help!
I faced this error: Port 443 in use by "C:\windows\syswow64\wwahost.exe" with PID
In my case my Skype was using Port 443 though the Skype App was closed. so Apache was unable to start properly.
Solution: Goto your task manager and Click on the End task on the app which is using Port 443. (In my case, it was Skype App).