Solved

localhost for two web server on window 7

Posted on 2014-07-30
7
648 Views
Last Modified: 2014-07-31
Dear Experts,

After installed XAMPP on window, I can run web server, for example, on browser address bar,type "localhost", xampp index page will  come out.
Today, I installed IIS for asp, now I also work when I type "localhost" , it will go to IIS index page.
But now, xampp is not enabled even I type its port such as localhost:8080

Any issue ? I believe IIS may be not at 8080 so that it should be okay to run two web server
on the same computer if the ports are different , right ?

Duncan
0
Comment
Question by:duncanb7
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:ambatihp
ID: 40230921
Yes its 100% okay as long as they run on different ports.

Try this out
stop IIS,
start xampp

open command prompt with elevated permissions and type netstat -ab look for the ports its running, if its 80, then your configs are not correct.

If you see it on 80 then
Stop the XAMPP server, if it is running already.
Open the file [XAMPP Installation Folder]/apache/conf/httpd.conf.
Now search for the string Listen 80 (I'm assuming that your XAMPP was using the port 80. Otherwise, just search for the string 'Listen'). This is the port number which XAMPP uses. Change this 80 to any other number which you prefer
Then search for the string ServerName and update the port number there also.
Now save and re-start XAMPP server and you are done.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40230922
In httpd.conf search for 80 and replace with 8080 which will be the listening and the virtual host lines then you can use http://localhost:8080
But why run IIS and XAMPP - if you need PHP then just install in IIS and remove XAMPP
0
 
LVL 13

Author Comment

by:duncanb7
ID: 40230937
since I need to answer some classic asp  and xampp question in EE, any alternative suggested ?
you mean php script can run on IIS on window, right ?

Duncan
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 13

Author Closing Comment

by:duncanb7
ID: 40230940
Great work and fast,thanks for your reply
  IIS is using 80 and I set 80 also for xampp so now it is fixed to 80 and 8001
Last question,php script can run on IIS web server on window, right ?
Duncan
0
 
LVL 4

Expert Comment

by:ambatihp
ID: 40230946
0
 
LVL 13

Author Comment

by:duncanb7
ID: 40230948
it is good link and answer  and the points has been graded before your post

Thanks,  ambatihp

Duncan
0
 
LVL 58

Expert Comment

by:Gary
ID: 40231649
Download virtual box and install a linux GUI like Centos
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question