Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why won't Apache start in XAMPP installation?

I've taken the first steps to learning PHP - think it would be a good step in the right direction. I would like some help however on installing XAMPP. I have downloaded the file and all that through the Apache Friends site, but when I head to to control panel, I get numerous errors.

This is what it says for me:

**10:21:53  [Apache]    Problem detected!
10:21:53  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
10:21:53  [Apache]  Apache WILL NOT start without the configured ports free!
10:21:53  [Apache]  You need to uninstall/disable/reconfigure the blocking application
10:21:53  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
10:21:53  [Apache]  Problem detected!
10:21:53  [Apache]  Port 443 in use by "C:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 3748!
10:21:53  [Apache]  Apache WILL NOT start without the configured ports free!
10:21:53  [Apache]  You need to uninstall/disable/reconfigure the blocking application
10:21:53  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
10:21:53  [main]    Starting Check-Timer
10:21:53  [main]    Control Panel Ready**

Could someone please tell me what this means and how I remedy it? Thanks very much.

like image 612
Timothy Armoo Avatar asked Sep 12 '13 09:09

Timothy Armoo


People also ask

Why does Apache not start in XAMPP?

Resolve Apache Port Conflicts. If Apache cannot start, you won't be able to access your XAMPP dashboard or any sites you have installed on the platform. A port conflict may be the underlying problem. By default, Apache connects over port 80.

How do I start Apache in XAMPP?

Configuration Process of XAMPP ServerStart the XAMPP control panel through the "Run as administrator" option. "XAMPP Control Panel" will appear on the screen and click on "Start" action to start the "Apache" and "MySQL" modules. The default XAMPP server settings should work for most users.

Why localhost is not working in XAMPP?

Run XAMPP (=> Apache) under an another port: Rename all ports with 80 to 8080 in your httpd. conf file. Your using Windows: Use notpad or editor with Ctrl+H to replace "80".


2 Answers

It seems that port 80 and 443 is used by another program. From my experince - open Skype. Go to Tools -> Options -> Advanced -> Connection. Please uncheck "use port 80 and 443 as alternatives...."

enter image description here

Then, try to restart Apache.

like image 82
teo Avatar answered Oct 02 '22 09:10

teo


I tried this and it worked really well...

As you have already figured the port 80 is in use by something with pid 4

This application's detailed info can be seen using the details tab on the task manager window.

However I found out the application is not writable and hence I figured it shouldn't be touched.

Instead I changed the port of the apachae server on xampp to be 85

Open xampp and click on config in front of apache then select the first option that appears allowing you to open httpd.conf and then in the notepad file that opens up, find the word listen and go to the 4th word that it finds.

It will read something like Listen 80

Change this to any number except 80 (like 85) and voila it work

like image 40
TMess Avatar answered Oct 02 '22 10:10

TMess