?
Solved

localhost for two web server on window 7

Posted on 2014-07-30
7
Medium Priority
?
673 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Suggested Courses

752 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