Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 9th, 2004, 01:50 PM
Authorized User
 
Join Date: May 2004
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can I run Apache and IIS on the same PC?

Hi all

Thanks to this forum I bought this book.
I previously worked through the "Beginning ASP 3.0" book from Wrox, but am now moving onto PHP.
My question is, can I run the Apache server software on the same machine that I have Windows IIS running. I have Windows 2000 running IIS. Do I have to uninstall IIS before I install Apache, or can they both run together? If so, how?

Thanks in advance.

thegooner
Reply With Quote
  #2 (permalink)  
Old May 13th, 2004, 06:35 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, you can run them both, but they can't listen to the same port. Port 80 is the default HTTP port, but you can specify the port you want to connect to in the URL.

If you set up IIS to use the default port, and set up Apache to connect to port 8080 (for example), then you can access them like this:

 http://localhost/ (IIS index)
 http://localhost:8080/ (Apache index)


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #3 (permalink)  
Old May 23rd, 2004, 07:46 PM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What about if I set up two IP addresses on that machine?

I'm trying to set up a box with two IP addresses with apache listening on one IP on port 80, and IIS listening on the other IP Address on port 80 as well.

Is this possible? Can anyone point me to a reference?



Reply With Quote
  #4 (permalink)  
Old May 24th, 2004, 06:17 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I don't think this is possible, having both listen on the same port would cause conflicts.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote
  #5 (permalink)  
Old June 7th, 2004, 02:53 PM
Authorized User
 
Join Date: Jun 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

While I've never done it in exactly this combination, it should be possible (I've run IIS on multiple IPs :80, and apache the same, but never combined)

Good places to start reading:

--- Apache ---
http://httpd.apache.org/docs-2.0/mod...on.html#listen
http://httpd.apache.org/docs-2.0/bind.html

--- IIS ---
In the IIS management MMC window/snap-in, right-click and choose properties for the website in question (probably "Default Web Site"). There's a drop-down for IP address where you can choose IP address to bind to (or all available); listening port is entered in a text field below that, and there's an advanced button for further tweaking.

Reply With Quote
  #6 (permalink)  
Old January 21st, 2005, 06:50 PM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A long overdue update to my own quetion:

After installing Windows 2003, I configured IIS then turned off the service. Then I installed Apache and configured it to listen on the proper IP and port.

In this case the problem was that IIS 6.0 has a feature called Socket Pooling that claims all ports for all loaded IP addresses, even if not configured in IIS.

So, IIS was hogging port 80 on the IP address I'd designated as the Apache address and causing it to not run.

What I had to do was:

1- Extract the httpcfg.exe utility from the support tools area on the Win2003 CD.
2 - stop all IIS services: net stop http /y
3 - have IIS listen only on the IP address I'd designated for IIS: httpcfg set iplisten -i 192.168.1.253
4 - make sure: httpcfg query iplisten (the ip's listed are the only ip addresses that IIS will be listening on and no other)
5- restart IIS Services: net start w3svc

Voila! Apache is listening on its default ports on 192.168.1.254 and IIS is listening on its default ports on 192.168.1.253.


Reply With Quote
  #7 (permalink)  
Old June 14th, 2005, 12:17 AM
Registered User
 
Join Date: Jun 2005
Location: Wellington, Wellington, New Zealand.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi I'm keen to get started with the book but..
I'm still unable to get Apache working on XP Pro with IIS.
I'm using XAMPP Apache2.
I've tried changing the listening port to 8080 in conf/httpd but no luck. When I click start Apache it just stops immediately.

Reply With Quote
  #8 (permalink)  
Old June 14th, 2005, 06:31 AM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used appserv to setup my AMP. http://www.appservnetwork.com/ give it a go.... it's real easy to use..

Reply With Quote
  #9 (permalink)  
Old June 14th, 2005, 10:33 PM
Registered User
 
Join Date: Jun 2005
Location: Wellington, Wellington, New Zealand.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK I installed appserv with 8080 as the port.
Now I get this message when I try to start Apache2:
"The system can not find the file specified. no installed service
named Apache2"
I installed it in the default location and didn't change anything.
Apache2 is not listed under Services but PHPgeekutil is.

Reply With Quote
  #10 (permalink)  
Old June 15th, 2005, 05:45 AM
Registered User
 
Join Date: Jun 2005
Location: Wellington, Wellington, New Zealand.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK it works if I open from the bin folder myself rather than through the start menu.
Refer http://www.webmasterworld.com/forum92/3337.htmif interested

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run a .NET .exe on a remote PC vikas67k C# 5 August 26th, 2008 01:52 AM
exec() hangs IIS and Apache ajutla Pro PHP 2 October 20th, 2004 11:11 AM
Access Denied to: from apache to iis san2k .NET Web Services 0 June 11th, 2004 07:17 AM
Accessing network files from IIS PC badgolfer ASP.NET 1.0 and 1.1 Basics 3 March 2nd, 2004 06:51 AM
setting up PC as a web server with IIS kathryne Classic ASP Basics 7 October 9th, 2003 04:55 PM



All times are GMT -4. The time now is 05:54 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.