Solved

localhost for two web server on window 7

Posted on 2014-07-30
7
638 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 13

Author Closing Comment

by:duncanb7
Comment Utility
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
Comment Utility
0
 
LVL 13

Author Comment

by:duncanb7
Comment Utility
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
Comment Utility
Download virtual box and install a linux GUI like Centos
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now