Running two servers from one machine?????

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Running two servers from one machine?????

Post by Chris Corbyn »

Hi,

I've got IIS installed and would like to switch to apache. I wondered if I needed to uninstall IIS first becuase I'd quite like to have both. I don't want to use them both simultaneously... I'd disbale IIS and enable apache if I wanted to host from apache and vice versa if I wanted to use IIS. Does this cause problems just stopping and starting various services?

Thanks in adavance :-)
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Yes, you can have them both installed. You could even have them both running at the same time as long as you have them use different ports (like 80 and 8080).
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Thanks I've just done and it works...

I'm having difficulty setting the directory my html and php files are stored in with apache. I wanted to set it to the same as IIS is using so I don't need to keep two copies of everything.

I'm trying to edit the httpd.conf file and I assume I just need to change
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/Program Files/Apache Group/Apache2/htdocs">
to
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/Inetpub/wwwroot">
But even when I do this it still tries to serve from it's default directory in program files...??? Am I doing this wrong?

Thanks
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

theres anotehr place you have to change it in that same file - look closely - its called doc root or something like that
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

LOl I'm so dumb... When you install php for apache it brings up "sorry the software to configure the httpd.conf file has not yet been written, please edit httpd.conf manually"

I can't find where I'm supposed to do this. When I open php files in localhost using apache it just displays half of the source code.
Post Reply