The Apache server will start, but it won’t try listening on port 80 (or any other port). (2) I wondered if maybe you had commented out the last Listen configuration – nope. (1) I wondered if a corrupted nf file could cause your problem – nope. I also tried 2 other things, but couldn’t reproduce your results (except with the 3 scenarios mentioned above): If you changed the port number in them, then it won’t affect your port numbering. The first 2 lines (which begin with #Listen are commented out (the # is a comment symbol)), so they do nothing. There are 3 Listen lines in the XAMPP 1.7.3, 1.7.4, and 1.7.7: (3) You editted the wrong line in your nf file. (2) You have more than 1 version of the Apache server installed (perhaps you have 2 or more XAMPP installations or maybe XAMPP and AMPPS) and you editted the wrong nf file. If you open the file again and notice that the port is still 80, then this is the culprit. (1) You forgot to save the changes to the nf file. What you don’t want is other http servers (like IIS) using this port at the same time that Apache is (byt the way, the Apache service is call httpd).įrom your description, it sound like the changes are not being picked up by the Apache server. I would expect IE or Chrome to use this port to try and connect to the Apache server. IE or Chrome should be using port 80 – this is the standard http port that web browsers use to connect to a http server. Previously where you typed localhost, you will now have to type localhost:1234 (or whatever your new port number is): When you connect to the Apache Server, you will have to append the port number to the URL. (You could also just reboot the computer, but that is overkill). Do this by clicking on the Stop button on the XAMPP control panel and then clicking on the Start button. (4) Restart the Apache Server to have the change take effect. (3b) Change the port number (80) to a different number (for this tutorial, I changed it to 1234). It is line #47 in the XAMPP 1.7.3 install. (3a) Locate the line that says Listen 80. DO NOT use a word processor (like Word) to open the file, it will badly mess it up. (2) Open the file using a text editor or programmer’s editor (I use notepad++). This file should be found in C:\xampp\apache\conf (or whichever directory you installed XAMPP in – mine is on my D-drive because that is where I installed XAMPP). How to Change the PortĮdit the nf file to change the port Apache listens on. Some ports to try are 2375, 4173, 5107, 9260, 20010 – these ports, among others, are all listed as unassigned (but that doesn’t mean someone else isn’t using them). You should try several ports, just in case you are lucky and manage to pick ports used by other applications. XAMPP 1.7.4 removed a useful port debugging tool, so changing the Apache Server port is one way of checking to see if you have a port conflict – change the port and if Apache Server starts working, then you know some other application is using port 80. Perhaps port 80 is already being used by some other application (like IIS) and you don’t want to or are not allowed to shut it down or change it.Īpache Server is not starting and you are using XAMPP 1.7.4 (I recommend XAMPP 1.7.3). Perhaps certain ports are blocked by your network admin or ISP (although, I would not recommend running XAMPP as a publicly accessible server). Yet another reason why you should not be using XAMPP 1.7.4 or 1.7.7.īy default, Apache Server listens on port 80, but this can be changed. It does not reflect the actual port Apache is listening to. This is WRONG!!!! This is a HARDCODED string in XAMPP 1.7.4 and 1.7.7. Regardless of which port you specify Apache to listen to, the XAMPP Control Panel will always display: NOTE: XAMPP 1.7.4 and XAMPP 1.7.7 display misleading port information in the XAMPP Control Panel.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |