Solved

localhost for two web server on window 7

Posted on 2014-07-30
7
663 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 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

737 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