Issue 1. The port number 80 may be occupied by IIS or Skype.
Note: By default, the IIS will occupy the port number 80 when you install the OS and also when you install XAMPP, the Apache web server will occupy port number 80 by default. So there rises the real conflict. On the same port you can not run two servers. So to fix this issue, you can do the following:
Go to C:\xampp\apache\conf
In this location you will find a configuration file(httpd.conf). Open it and do the following changes. Look for the following line in httpd.CONF file
Listen 80
The meaning of this line is that the Apache server by default will take port number 80. Thats it! Change this number to something else like 81. Ok. After changing this line of code the line will look like this.
Listen 81
After this look for the following line of code in the same file.
ServerName localhost:80
Change this to the same number whatever you added before like Listen 81. After changing this line of code the line will look like this.
ServerName localhost:81
Save the file and close it.
After this go to C:\xampp\apache\conf\extra
In this location you will find another configuration file(httpd-ssl.CONF). Open it and do the following changes. Look for the following line in httpd-ssl.CONF file
Listen 443
Once you find this line of code do the following changes like whatever you made in the earlier case. Change this port number from 443 to something else like 4433. Ok. After changing this line of code the line will look like this.
Listen 4433
After this go and look for the following line of code.
Note: The above line of code will be surrounded by angular brackets. Kindly do find the change.
Change
After changes the line of code will look like this
And finally last but not the least look for the following line of code which is beneath the above line of code.
ServerName localhost:443
Change the port number from 443 to 4433. After changes the code will look like this.
ServerName localhost:4433
Now save and close the file. That's it!! Finally you done a great job. Now restart your XAMPP control panel.
Issue 2: when I type http://localhost, I get IE cannot display this page. When I type http://127.0.0.1 it display XAMPP for Windows page.
If yours is the above issue then you are not alone. There are many with this issue. Follow me i will solve your issue.
Go to C:\Windows\system32\drivers\etc\ and you will find a file named 'hosts' open this file with any text editor or notepad and find this line:
::1 localhost
comment out the line so it looks like this:
# ::1 localhost
Save the file, clear your browser's cache again and then try once again to go to http://localhost
PHP Hunger Facebook comments for blogger brought to you by phphunger.com , Get Yours?