What are you looking for ?
Home » » XAMPP errors

XAMPP errors

{[['']]}

How to change XAMPP apache server port?


After install XAMPP, and when you try to start the Apache server in the XAMPP Control Panel, the Apache server won't start.
The most common cause for the XAMPP Apache server not starting issue is because the default port no 80 may already be in use by another program like Skype, Teamviewer etc.and you get the following errors:

16:50:25  [Apache]     Status change detected: running
16:50:26  [Apache]     Status change detected: stopped
16:50:26  [Apache]     Error: Apache shutdown unexpectedly.
16:50:26  [Apache]     This may be due to a blocked port, missing dependencies,
16:50:26  [Apache]     improper privileges, a crash, or a shutdown by another method.
16:50:26  [Apache]     Press the Logs button to view error logs and check
16:50:26  [Apache]     the Windows Event Viewer for more clues
16:50:26  [Apache]     If you need more help, copy and post this
16:50:26  [Apache]     entire log window on the forums

Step 1

From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).
Inside the httpd.conf file, Find the line that says: Listen 80

Change Listen port from 80 into any number / port you want. In my scenario I’m using port 8080.
Listen 80
Listen 8080
Also change ServerName port from 80 into any number / port you want. I will use the same scenario using port 8080.
ServerName localhost:80 
ServerName localhost:8080

Step 2

From the XAMPP Control Panel, under Apache, click the Config button again, but this time select Apache (httpd-ssl.conf).
Change Listen port from 433 into any number / port you want. In my scenario I’m using port 4433.
Listen 443
Listen 4433
Also change VirtualHost & ServerName port from 433 into any number / port you want. I will use the same scenario using port 4433
<VirtualHost _default_:443>
<VirtualHost _default_:4433>
ServerName localhost:443 
ServerName localhost:4433
Share this article :

Post a Comment

Flag Counter

Social Profile

 
Copyright x 2011. By Wael Medhat - All Rights Reserved