|
|
 |
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, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
 |
|
|
 |

May 9th, 2004, 01:50 PM
|
|
Authorized User
|
|
Join Date: May 2004
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

May 13th, 2004, 06:35 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 835
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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/
|

May 23rd, 2004, 07:46 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

May 24th, 2004, 06:17 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,705
Thanks: 0
Thanked 4 Times in 4 Posts
|
|
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
::::::::::::::::::::::::::::::::::::::::::
|

June 7th, 2004, 02:53 PM
|
|
Authorized User
|
|
Join Date: Jun 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

January 21st, 2005, 06:50 PM
|
|
Registered User
|
|
Join Date: May 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

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
|
|
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.
|

June 14th, 2005, 06:31 AM
|
|
Authorized User
|
|
Join Date: May 2005
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I used appserv to setup my AMP. http://www.appservnetwork.com/ give it a go.... it's real easy to use..
|

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
|
|
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.
|

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
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |