How to change the port number of Apache in Xampp

拥有回忆 提交于 2019-12-11 11:25:51

问题


I am a novice I do not know anything about port numbers and how to change them. While installing Xampp on my windows 8.1 it is showing Error in port that apache has to use. How can I resolve this port issue and which port number I should change it to Please help me out This is the error coming while running xampp


回答1:


Open xamp, click on http.conf and search ServerName localhost

 ServerName localhost:8181 

I have set 8181 as my port, it will be 80 change it to 81 (since 80 is being used VMware in your case and it is used by skype too).

Reset the server after saving it..




回答2:


This is a common issue. For an example Developers can run Java web applications on JBoss server and at the same time test PHP project on XAMMP server. To make both servers up and carry out developments, port numbers need to be changed. Following is the way for changing port number in XAMMP Server.

If the XAMPP server is running for the moment, stop XAMPP server.

Follow these steps to change the port number.

Open the file in following location.

[XAMPP Installation Folder]/apache/conf/httpd.conf

Open the httpd.conf file and search for the String:

Listen 80

This is the port number used by XAMMP.

Then search for the string ServerName and update the Port Number which you entered earlier for Listen

Now save and re-start XAMPP server.



来源:https://stackoverflow.com/questions/35552306/how-to-change-the-port-number-of-apache-in-xampp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!