Apache Error
When you install and use Apache, it may sometimes give an unexpected error. Which tells something about any blocked port due to which it crashes. Change Apache Port, Apache server port 80.
Reason Of Port Conflict
While using XAMPP control panel for Apache sometimes there is a conflict of ports, apache use port 80 as well as many other applications use port 80 like Skype, to figure that out you can follow these steps to change the port of your XAMPP.
Solve the Port Conflict
- Open XAMPP Control Panel. Start Apache if it gives an Error: Apache Shutdown unexpectedly. Maybe due to Blocked Port or missing dependencies. You should consider changing its port.
- On the top right corner of the dialog box, there is a Config Button with a wrench image icon. Click Config to open up XAMPP configurations of Control Panel.
- Find Service and Port Settings to open XAMPP Service Settings. You will see Main Port as 80 and SSL Port as 443.
Change Main Port to 81 and SSL Port to 441. Click Save to save the settings.
- Now you will see Configurations Panel again, Click Save to save the port configurations.
- In XAMPP Control panel find config of Apache server as shown in the figure below. A drop down menu will display, Apache (httpd.conf).
- Click on Apache (httpd.conf) it will open a text file. Find Listen 80, or Press Ctrl+f to open ‘Find’ Dialog box. Write 80 or Listen 80 to find the port settings in configurations file.
Change 80 to 81 as you previously changed from configurations -> services.
- Now press Ctrl+s to save manual configurations and close the editor.
-
In XAMPP control panel again click on Apache Config, you will find, Apache (httpd-ssl.conf) in the dropdown menu.
- Click Apache (httpd-ssl.conf) to open SSL configurations in editor. Find 443 manually or by ‘Find’ dialog box (Ctrl+f).
Change 443 to 441 as you changed previously in configurations Control Panel.
- Now press Ctrl+s to save manual configurations and close the editor.
- Start Apache server again. It will then run smoothly without any issues.