I wanted to install Apache onto an XP SP2 machine with IIS already installed, wanting them to function independantly both with virtual local testing servers, can someone give me some info about going about this.
I wanted to install Apache onto an XP SP2 machine with IIS already installed, wanting them to function independantly both with virtual local testing servers, can someone give me some info about going about this.
To err is human. To really foul things up ... you need a computer.
Bascially I imagine all you'll need to change are the default ports (HTTP and HTTPS) for either Apache or IIS... Other than that they should both be happy (as long as you aren't trying to do something like let them both use the same files at the same time)
So, how do I do that then?
To err is human. To really foul things up ... you need a computer.
Should you be installing both on the same machine if you don't know how to do that?Originally Posted by yamangman
For IIS you need to open up the management console ("Internet Services Manager"), open up the root level in the left hand bar so that you can see "Default Web Site", right click that (edit: and then left click properties) and then change the port(s)... Might I ask why you want to do this?
Last edited by malfunction; 09-02-2005 at 08:39 PM.
Dosn't appear to work, I installed Apache and the default web site appears as a stop sign reading 'error'.
Isn't there a way I could assign Apache to 81.178.207.37 and IIS to 127.0.0.1?
To err is human. To really foul things up ... you need a computer.
You *might* need to restart the service / PC to get IIS to use a different port
Edit: I presume you mean that the default IIS website is shown when you try and connect to port 80...
Last edited by malfunction; 09-02-2005 at 09:01 PM.
No, I meant Apache rules the roost when I type localhost
So how do I use localhost with different ports? Or do you mean I switch IIS back to port 80 when I went to use it? I don't think that would work, I think Apache takes control even when IIS is on port 80.
Last edited by yamangman; 09-02-2005 at 09:09 PM.
To err is human. To really foul things up ... you need a computer.
If for example you've switched IIS to port 81 you'd type:
localhost:81/mypath/mypage.html
AHhh, thanks you ver much. Can I map ports with their IP address to host names in the Windows HOSTS file, somthing like this:
127.0.0.1:8080 iishost
127.0.0.1:80 apachehost
??
To err is human. To really foul things up ... you need a computer.
Not that I know of no.
no -that can't be done with hosts files / DNS, you can only use port forwarding to that service but that fact that your stuggling with simple port mappings suggests your way out of your league and need a little reading on the basics of running a webserver
It is Inevitable.....
One simple thing you could do is do a browser based redirect...
I.e. if you had a html file sitting at:
localhost/iis.html
It would redirect you to
localhost:8080
However you really haven't stated your case for running both... Are you just trying to compare them? Or learn ASP and PHP? (you can run PHP under IIS anyway)...
can you do redirects to ports ? probably but I don't think I've ever tried
It is Inevitable.....
yea, use ASP or PHP to do a low level http redirect responce to the client.
Thanks malfunction. I'm trying to to get more competent with PHP and may upload a website, but i'm tired of using IIS/PHP and want to use Apache seeing as most web hosts are Apache/PHP.
Trying to get PHP working with Apache now, i've included the line 'LoadModule php4_module C:/php-4.3.10-Win32/sapi/php4apache2.dll' and tried a few simple PHP scripts, but firefox just shows all page code for .php pages and IE dosn't execute scripts, so obviously PHP isn't working, so I need some help with that too if you have any ideas.
To err is human. To really foul things up ... you need a computer.
you need the application hanndler in the config
AddType application/x-httpd-php .php
so that it understands to use the php functionality for .php files
It is Inevitable.....
There are currently 1 users browsing this thread. (0 members and 1 guests)