Solved

localhost for two web server on window 7

Posted on 2014-07-30
7
665 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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 NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

688 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